123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173(* 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.kinesisletapiVersion="2013-12-02"letendpointPrefix="kinesis"letserviceFullName="Amazon Kinesis"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Kinesis"lettargetPrefix="Kinesis_20131202"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[]))])moduleHashKey=structtypenonrect=stringletcontext_="HashKey"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"0|([1-9]\\d{0,38})");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"HashKey"jletto_json=simple_to_jsonto_valueendmoduleShardId=structtypenonrect=stringletcontext_="ShardId"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:"ShardId"jletto_json=simple_to_jsonto_valueendmoduleHashKeyRange=structtypenonrect={startingHashKey:HashKey.toption[@ocaml.doc"The starting hash key of the hash key range."];endingHashKey:HashKey.toption[@ocaml.doc"The ending hash key of the hash key range."]}letmake?startingHashKey=fun?endingHashKey->fun()->{startingHashKey;endingHashKey}letto_valuex=structure_to_value[("StartingHashKey",(Option.mapx.startingHashKey~f:HashKey.to_value));("EndingHashKey",(Option.mapx.endingHashKey~f:HashKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendingHashKey=(Option.map~f:HashKey.of_xml)(Xml.childxml_arg0"EndingHashKey")inletstartingHashKey=(Option.map~f:HashKey.of_xml)(Xml.childxml_arg0"StartingHashKey")inmake?endingHashKey?startingHashKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendingHashKey=field_mapjson__"EndingHashKey"HashKey.of_jsoninletstartingHashKey=field_mapjson__"StartingHashKey"HashKey.of_jsoninmake?endingHashKey?startingHashKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers."]moduleShardIdList=structtypenonrect=ShardId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ShardId.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:ShardId.of_xml)letof_jsonj=list_of_json~kind:"ShardIdList"~of_json:ShardId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleData=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleEncryptionType=structtypenonrect=|NONE|KMS|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|KMS->"KMS"|Non_static_ids->sletof_string=function|"NONE"->NONE|"KMS"->KMS|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 EncryptionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionType"j)letto_json=simple_to_jsonto_valueendmodulePartitionKey=structtypenonrect=stringletcontext_="PartitionKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"PartitionKey"jletto_json=simple_to_jsonto_valueendmoduleSequenceNumber=structtypenonrect=stringletcontext_="SequenceNumber"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"0|([1-9]\\d{0,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:"SequenceNumber"jletto_json=simple_to_jsonto_valueendmoduleTimestamp=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_valueendmoduleMetricsName=structtypenonrect=|IncomingBytes|IncomingRecords|OutgoingBytes|OutgoingRecords|WriteProvisionedThroughputExceeded|ReadProvisionedThroughputExceeded|IteratorAgeMilliseconds|ALL|Non_static_idofstringletmakei=iletto_string=function|IncomingBytes->"IncomingBytes"|IncomingRecords->"IncomingRecords"|OutgoingBytes->"OutgoingBytes"|OutgoingRecords->"OutgoingRecords"|WriteProvisionedThroughputExceeded->"WriteProvisionedThroughputExceeded"|ReadProvisionedThroughputExceeded->"ReadProvisionedThroughputExceeded"|IteratorAgeMilliseconds->"IteratorAgeMilliseconds"|ALL->"ALL"|Non_static_ids->sletof_string=function|"IncomingBytes"->IncomingBytes|"IncomingRecords"->IncomingRecords|"OutgoingBytes"->OutgoingBytes|"OutgoingRecords"->OutgoingRecords|"WriteProvisionedThroughputExceeded"->WriteProvisionedThroughputExceeded|"ReadProvisionedThroughputExceeded"->ReadProvisionedThroughputExceeded|"IteratorAgeMilliseconds"->IteratorAgeMilliseconds|"ALL"->ALL|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 MetricsName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MetricsName"j)letto_json=simple_to_jsonto_valueendmoduleChildShard=structtypenonrect={shardId:ShardId.toption[@ocaml.doc"The shard ID of the existing child shard of the current shard."];parentShards:ShardIdList.toption[@ocaml.doc"The current shard that is the parent of the existing child shard."];hashKeyRange:HashKeyRange.toption}letmake?shardId=fun?parentShards->fun?hashKeyRange->fun()->{shardId;parentShards;hashKeyRange}letto_valuex=structure_to_value[("ShardId",(Option.mapx.shardId~f:ShardId.to_value));("ParentShards",(Option.mapx.parentShards~f:ShardIdList.to_value));("HashKeyRange",(Option.mapx.hashKeyRange~f:HashKeyRange.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethashKeyRange=(Option.map~f:HashKeyRange.of_xml)(Xml.childxml_arg0"HashKeyRange")inletparentShards=(Option.map~f:ShardIdList.of_xml)(Xml.childxml_arg0"ParentShards")inletshardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ShardId")inmake?hashKeyRange?parentShards?shardId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethashKeyRange=field_mapjson__"HashKeyRange"HashKeyRange.of_jsoninletparentShards=field_mapjson__"ParentShards"ShardIdList.of_jsoninletshardId=field_mapjson__"ShardId"ShardId.of_jsoninmake?hashKeyRange?parentShards?shardId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output parameter of the GetRecords API. The existing child shard of the current shard."]moduleRecord=structtypenonrect={sequenceNumber:SequenceNumber.toption[@ocaml.doc"The unique identifier of the record within its shard."];approximateArrivalTimestamp:Timestamp.toption[@ocaml.doc"The approximate time that the record was inserted into the stream."];data:Data.toption[@ocaml.doc"The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB)."];partitionKey:PartitionKey.toption[@ocaml.doc"Identifies which shard in the stream the data record is assigned to."];encryptionType:EncryptionType.toption[@ocaml.doc"The encryption type used on the record. This parameter can be one of the following values: NONE: Do not encrypt the records in the stream. KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key."]}letmake?sequenceNumber=fun?approximateArrivalTimestamp->fun?data->fun?partitionKey->fun?encryptionType->fun()->{sequenceNumber;approximateArrivalTimestamp;data;partitionKey;encryptionType}letto_valuex=structure_to_value[("SequenceNumber",(Option.mapx.sequenceNumber~f:SequenceNumber.to_value));("ApproximateArrivalTimestamp",(Option.mapx.approximateArrivalTimestamp~f:Timestamp.to_value));("Data",(Option.mapx.data~f:Data.to_value));("PartitionKey",(Option.mapx.partitionKey~f:PartitionKey.to_value));("EncryptionType",(Option.mapx.encryptionType~f:EncryptionType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionType=(Option.map~f:EncryptionType.of_xml)(Xml.childxml_arg0"EncryptionType")inletpartitionKey=(Option.map~f:PartitionKey.of_xml)(Xml.childxml_arg0"PartitionKey")inletdata=(Option.map~f:Data.of_xml)(Xml.childxml_arg0"Data")inletapproximateArrivalTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ApproximateArrivalTimestamp")inletsequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"SequenceNumber")inmake?encryptionType?partitionKey?data?approximateArrivalTimestamp?sequenceNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionType=field_mapjson__"EncryptionType"EncryptionType.of_jsoninletpartitionKey=field_mapjson__"PartitionKey"PartitionKey.of_jsoninletdata=field_mapjson__"Data"Data.of_jsoninletapproximateArrivalTimestamp=field_mapjson__"ApproximateArrivalTimestamp"Timestamp.of_jsoninletsequenceNumber=field_mapjson__"SequenceNumber"SequenceNumber.of_jsoninmake?encryptionType?partitionKey?data?approximateArrivalTimestamp?sequenceNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob."]moduleStreamMode=structtypenonrect=|PROVISIONED|ON_DEMAND|Non_static_idofstringletmakei=iletto_string=function|PROVISIONED->"PROVISIONED"|ON_DEMAND->"ON_DEMAND"|Non_static_ids->sletof_string=function|"PROVISIONED"->PROVISIONED|"ON_DEMAND"->ON_DEMAND|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 StreamMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamMode"j)letto_json=simple_to_jsonto_valueendmoduleMetricsNameList=structtypenonrect=MetricsName.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:7)>>=(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:MetricsName.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:MetricsName.of_xml)letof_jsonj=list_of_json~kind:"MetricsNameList"~of_json:MetricsName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSequenceNumberRange=structtypenonrect={startingSequenceNumber:SequenceNumber.toption[@ocaml.doc"The starting sequence number for the range."];endingSequenceNumber:SequenceNumber.toption[@ocaml.doc"The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null."]}letmake?startingSequenceNumber=fun?endingSequenceNumber->fun()->{startingSequenceNumber;endingSequenceNumber}letto_valuex=structure_to_value[("StartingSequenceNumber",(Option.mapx.startingSequenceNumber~f:SequenceNumber.to_value));("EndingSequenceNumber",(Option.mapx.endingSequenceNumber~f:SequenceNumber.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendingSequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"EndingSequenceNumber")inletstartingSequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"StartingSequenceNumber")inmake?endingSequenceNumber?startingSequenceNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendingSequenceNumber=field_mapjson__"EndingSequenceNumber"SequenceNumber.of_jsoninletstartingSequenceNumber=field_mapjson__"StartingSequenceNumber"SequenceNumber.of_jsoninmake?endingSequenceNumber?startingSequenceNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The range of possible sequence numbers for the shard."]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_valueendmoduleChildShardList=structtypenonrect=ChildShard.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChildShard.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:ChildShard.of_xml)letof_jsonj=list_of_json~kind:"ChildShardList"~of_json:ChildShard.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMillisBehindLatest=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleRecordList=structtypenonrect=Record.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Record.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:Record.of_xml)letof_jsonj=list_of_json~kind:"RecordList"~of_json:Record.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleErrorCode=structtypenonrect=stringletcontext_="ErrorCode"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorCode"jletto_json=simple_to_jsonto_valueendmoduleTagKey=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_valueendmoduleStreamARN=structtypenonrect=stringletcontext_="StreamARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws.*:kinesis:.*:\\d{12}:stream/\\S+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StreamARN"jletto_json=simple_to_jsonto_valueendmoduleStreamModeDetails=structtypenonrect={streamMode:StreamMode.t[@ocaml.doc"Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams."]}letcontext_="StreamModeDetails"letmake~streamMode=fun()->{streamMode}letto_valuex=structure_to_value[("StreamMode",(Some(StreamMode.to_valuex.streamMode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamMode=StreamMode.of_xml(Xml.child_exn~context:context_xml_arg0"StreamMode")inmake~streamMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamMode=field_map_exnjson__"StreamMode"StreamMode.of_jsoninmake~streamMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams."]moduleStreamName=structtypenonrect=stringletcontext_="StreamName"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:"StreamName"jletto_json=simple_to_jsonto_valueendmoduleStreamStatus=structtypenonrect=|CREATING|DELETING|ACTIVE|UPDATING|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|DELETING->"DELETING"|ACTIVE->"ACTIVE"|UPDATING->"UPDATING"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"DELETING"->DELETING|"ACTIVE"->ACTIVE|"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 StreamStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamStatus"j)letto_json=simple_to_jsonto_valueendmoduleConsumerARN=structtypenonrect=stringletcontext_="ConsumerARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[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:"ConsumerARN"jletto_json=simple_to_jsonto_valueendmoduleConsumerName=structtypenonrect=stringletcontext_="ConsumerName"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:"ConsumerName"jletto_json=simple_to_jsonto_valueendmoduleConsumerStatus=structtypenonrect=|CREATING|DELETING|ACTIVE|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|DELETING->"DELETING"|ACTIVE->"ACTIVE"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"DELETING"->DELETING|"ACTIVE"->ACTIVE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ConsumerStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConsumerStatus"j)letto_json=simple_to_jsonto_valueendmoduleEnhancedMetrics=structtypenonrect={shardLevelMetrics:MetricsNameList.toption[@ocaml.doc"List of shard-level metrics. The following are the valid shard-level metrics. The value \"ALL\" enhances every metric. IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide."]}letmake?shardLevelMetrics=fun()->{shardLevelMetrics}letto_valuex=structure_to_value[("ShardLevelMetrics",(Option.mapx.shardLevelMetrics~f:MetricsNameList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshardLevelMetrics=(Option.map~f:MetricsNameList.of_xml)(Xml.childxml_arg0"ShardLevelMetrics")inmake?shardLevelMetrics()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshardLevelMetrics=field_mapjson__"ShardLevelMetrics"MetricsNameList.of_jsoninmake?shardLevelMetrics()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents enhanced metrics types."]moduleNaturalIntegerObject=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for NaturalIntegerObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleShard=structtypenonrect={shardId:ShardId.toption[@ocaml.doc"The unique identifier of the shard within the stream."];parentShardId:ShardId.toption[@ocaml.doc"The shard ID of the shard's parent."];adjacentParentShardId:ShardId.toption[@ocaml.doc"The shard ID of the shard adjacent to the shard's parent."];hashKeyRange:HashKeyRange.toption[@ocaml.doc"The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers."];sequenceNumberRange:SequenceNumberRange.toption[@ocaml.doc"The range of possible sequence numbers for the shard."]}letmake?shardId=fun?parentShardId->fun?adjacentParentShardId->fun?hashKeyRange->fun?sequenceNumberRange->fun()->{shardId;parentShardId;adjacentParentShardId;hashKeyRange;sequenceNumberRange}letto_valuex=structure_to_value[("ShardId",(Option.mapx.shardId~f:ShardId.to_value));("ParentShardId",(Option.mapx.parentShardId~f:ShardId.to_value));("AdjacentParentShardId",(Option.mapx.adjacentParentShardId~f:ShardId.to_value));("HashKeyRange",(Option.mapx.hashKeyRange~f:HashKeyRange.to_value));("SequenceNumberRange",(Option.mapx.sequenceNumberRange~f:SequenceNumberRange.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumberRange=(Option.map~f:SequenceNumberRange.of_xml)(Xml.childxml_arg0"SequenceNumberRange")inlethashKeyRange=(Option.map~f:HashKeyRange.of_xml)(Xml.childxml_arg0"HashKeyRange")inletadjacentParentShardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"AdjacentParentShardId")inletparentShardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ParentShardId")inletshardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ShardId")inmake?sequenceNumberRange?hashKeyRange?adjacentParentShardId?parentShardId?shardId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumberRange=field_mapjson__"SequenceNumberRange"SequenceNumberRange.of_jsoninlethashKeyRange=field_mapjson__"HashKeyRange"HashKeyRange.of_jsoninletadjacentParentShardId=field_mapjson__"AdjacentParentShardId"ShardId.of_jsoninletparentShardId=field_mapjson__"ParentShardId"ShardId.of_jsoninletshardId=field_mapjson__"ShardId"ShardId.of_jsoninmake?sequenceNumberRange?hashKeyRange?adjacentParentShardId?parentShardId?shardId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A uniquely identified group of data records in a Kinesis data stream."]moduleMinimumThroughputBillingCommitmentOutputStatus=structtypenonrect=|ENABLED|DISABLED|ENABLED_UNTIL_EARLIEST_ALLOWED_END|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|ENABLED_UNTIL_EARLIEST_ALLOWED_END->"ENABLED_UNTIL_EARLIEST_ALLOWED_END"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|"ENABLED_UNTIL_EARLIEST_ALLOWED_END"->ENABLED_UNTIL_EARLIEST_ALLOWED_END|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 MinimumThroughputBillingCommitmentOutputStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MinimumThroughputBillingCommitmentOutputStatus"j)letto_json=simple_to_jsonto_valueendmoduleMinimumThroughputBillingCommitmentInputStatus=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|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 MinimumThroughputBillingCommitmentInputStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MinimumThroughputBillingCommitmentInputStatus"j)letto_json=simple_to_jsonto_valueendmoduleInternalFailureException=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 processing of the request failed because of an unknown error, exception, or failure."]moduleKMSAccessDeniedException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 ciphertext references a key that doesn't exist or that you don't have access to."]moduleKMSDisabledException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 the specified customer master key (CMK) isn't enabled."]moduleKMSInvalidStateException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 the state of the specified resource isn't valid for this request. For more information, see How Key State Affects Use of a Customer Master Key in the Amazon Web Services Key Management Service Developer Guide."]moduleKMSNotFoundException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 the specified entity or resource can't be found."]moduleKMSOptInRequired=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 Amazon Web Services access key ID needs a subscription for the service."]moduleKMSThrottlingException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 denied due to request throttling. For more information about throttling, see Limits in the Amazon Web Services Key Management Service Developer Guide."]moduleResourceInUseException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 resource is not available for this operation. For successful operation, the resource must be in the ACTIVE state."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 requested resource could not be found. The stream might not be specified correctly."]moduleSubscribeToShardEvent=structtypenonrect={records:RecordList.toption;continuationSequenceNumber:SequenceNumber.toption[@ocaml.doc"Use this as SequenceNumber in the next call to SubscribeToShard, with StartingPosition set to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. Use ContinuationSequenceNumber for checkpointing because it captures your shard progress even when no data is written to the shard."];millisBehindLatest:MillisBehindLatest.toption[@ocaml.doc"The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment."];childShards:ChildShardList.toption[@ocaml.doc"The list of the child shards of the current shard, returned only at the end of the current shard."]}letmake?records=fun?continuationSequenceNumber->fun?millisBehindLatest->fun?childShards->fun()->{records;continuationSequenceNumber;millisBehindLatest;childShards}letto_valuex=structure_to_value[("Records",(Option.mapx.records~f:RecordList.to_value));("ContinuationSequenceNumber",(Option.mapx.continuationSequenceNumber~f:SequenceNumber.to_value));("MillisBehindLatest",(Option.mapx.millisBehindLatest~f:MillisBehindLatest.to_value));("ChildShards",(Option.mapx.childShards~f:ChildShardList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchildShards=(Option.map~f:ChildShardList.of_xml)(Xml.childxml_arg0"ChildShards")inletmillisBehindLatest=(Option.map~f:MillisBehindLatest.of_xml)(Xml.childxml_arg0"MillisBehindLatest")inletcontinuationSequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"ContinuationSequenceNumber")inletrecords=(Option.map~f:RecordList.of_xml)(Xml.childxml_arg0"Records")inmake?childShards?millisBehindLatest?continuationSequenceNumber?records()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchildShards=field_mapjson__"ChildShards"ChildShardList.of_jsoninletmillisBehindLatest=field_mapjson__"MillisBehindLatest"MillisBehindLatest.of_jsoninletcontinuationSequenceNumber=field_mapjson__"ContinuationSequenceNumber"SequenceNumber.of_jsoninletrecords=field_mapjson__"Records"RecordList.of_jsoninmake?childShards?millisBehindLatest?continuationSequenceNumber?records()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"After you call SubscribeToShard, Kinesis Data Streams sends events of this type over an HTTP/2 connection to your consumer."]moduleShardIteratorType=structtypenonrect=|AT_SEQUENCE_NUMBER|AFTER_SEQUENCE_NUMBER|TRIM_HORIZON|LATEST|AT_TIMESTAMP|Non_static_idofstringletmakei=iletto_string=function|AT_SEQUENCE_NUMBER->"AT_SEQUENCE_NUMBER"|AFTER_SEQUENCE_NUMBER->"AFTER_SEQUENCE_NUMBER"|TRIM_HORIZON->"TRIM_HORIZON"|LATEST->"LATEST"|AT_TIMESTAMP->"AT_TIMESTAMP"|Non_static_ids->sletof_string=function|"AT_SEQUENCE_NUMBER"->AT_SEQUENCE_NUMBER|"AFTER_SEQUENCE_NUMBER"->AFTER_SEQUENCE_NUMBER|"TRIM_HORIZON"->TRIM_HORIZON|"LATEST"->LATEST|"AT_TIMESTAMP"->AT_TIMESTAMP|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 ShardIteratorType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ShardIteratorType"j)letto_json=simple_to_jsonto_valueendmodulePutRecordsResultEntry=structtypenonrect={sequenceNumber:SequenceNumber.toption[@ocaml.doc"The sequence number for an individual record result."];shardId:ShardId.toption[@ocaml.doc"The shard ID for an individual record result."];errorCode:ErrorCode.toption[@ocaml.doc"The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure."];errorMessage:ErrorMessage.toption[@ocaml.doc"The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message \"Internal Service Failure\"."]}letmake?sequenceNumber=fun?shardId->fun?errorCode->fun?errorMessage->fun()->{sequenceNumber;shardId;errorCode;errorMessage}letto_valuex=structure_to_value[("SequenceNumber",(Option.mapx.sequenceNumber~f:SequenceNumber.to_value));("ShardId",(Option.mapx.shardId~f:ShardId.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletshardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ShardId")inletsequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"SequenceNumber")inmake?errorMessage?errorCode?shardId?sequenceNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletshardId=field_mapjson__"ShardId"ShardId.of_jsoninletsequenceNumber=field_mapjson__"SequenceNumber"SequenceNumber.of_jsoninmake?errorMessage?errorCode?shardId?sequenceNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the result of an individual record from a PutRecords request. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to the stream includes ErrorCode and ErrorMessage in the result."]modulePutRecordsRequestEntry=structtypenonrect={data:Data.t[@ocaml.doc"The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (10 MiB)."];explicitHashKey:HashKey.toption[@ocaml.doc"The hash value used to determine explicitly the shard that the data record is assigned to by overriding the partition key hash."];partitionKey:PartitionKey.t[@ocaml.doc"Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream."]}letcontext_="PutRecordsRequestEntry"letmake?explicitHashKey=fun~data->fun~partitionKey->fun()->{explicitHashKey;data;partitionKey}letto_valuex=structure_to_value[("Data",(Some(Data.to_valuex.data)));("ExplicitHashKey",(Option.mapx.explicitHashKey~f:HashKey.to_value));("PartitionKey",(Some(PartitionKey.to_valuex.partitionKey)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartitionKey=PartitionKey.of_xml(Xml.child_exn~context:context_xml_arg0"PartitionKey")inletexplicitHashKey=(Option.map~f:HashKey.of_xml)(Xml.childxml_arg0"ExplicitHashKey")inletdata=Data.of_xml(Xml.child_exn~context:context_xml_arg0"Data")inmake~partitionKey?explicitHashKey~data()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartitionKey=field_map_exnjson__"PartitionKey"PartitionKey.of_jsoninletexplicitHashKey=field_mapjson__"ExplicitHashKey"HashKey.of_jsoninletdata=field_map_exnjson__"Data"Data.of_jsoninmake~partitionKey?explicitHashKey~data()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for PutRecords."]moduleTag=structtypenonrect={key:TagKey.toption[@ocaml.doc"A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % \\@"];value:TagValue.toption[@ocaml.doc"An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % \\@"]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:TagKey.to_value));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"Key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_mapjson__"Key"TagKey.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Metadata assigned to the stream or consumer, consisting of a key-value pair."]moduleStreamSummary=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of a stream."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamStatus:StreamStatus.toption[@ocaml.doc"The status of the stream."];streamModeDetails:StreamModeDetails.toption;streamCreationTimestamp:Timestamp.toption[@ocaml.doc"The timestamp at which the stream was created."]}letmake?streamName=fun?streamARN->fun?streamStatus->fun?streamModeDetails->fun?streamCreationTimestamp->fun()->{streamName;streamARN;streamStatus;streamModeDetails;streamCreationTimestamp}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamStatus",(Option.mapx.streamStatus~f:StreamStatus.to_value));("StreamModeDetails",(Option.mapx.streamModeDetails~f:StreamModeDetails.to_value));("StreamCreationTimestamp",(Option.mapx.streamCreationTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StreamCreationTimestamp")inletstreamModeDetails=(Option.map~f:StreamModeDetails.of_xml)(Xml.childxml_arg0"StreamModeDetails")inletstreamStatus=(Option.map~f:StreamStatus.of_xml)(Xml.childxml_arg0"StreamStatus")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamCreationTimestamp?streamModeDetails?streamStatus?streamARN?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamCreationTimestamp=field_mapjson__"StreamCreationTimestamp"Timestamp.of_jsoninletstreamModeDetails=field_mapjson__"StreamModeDetails"StreamModeDetails.of_jsoninletstreamStatus=field_mapjson__"StreamStatus"StreamStatus.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamCreationTimestamp?streamModeDetails?streamStatus?streamARN?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The summary of a stream."]moduleConsumer=structtypenonrect={consumerName:ConsumerName.toption[@ocaml.doc"The name of the consumer is something you choose when you register the consumer."];consumerARN:ConsumerARN.toption[@ocaml.doc"When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard. If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs."];consumerStatus:ConsumerStatus.toption[@ocaml.doc"A consumer can't read data while in the CREATING or DELETING states."];consumerCreationTimestamp:Timestamp.toption}letmake?consumerName=fun?consumerARN->fun?consumerStatus->fun?consumerCreationTimestamp->fun()->{consumerName;consumerARN;consumerStatus;consumerCreationTimestamp}letto_valuex=structure_to_value[("ConsumerName",(Option.mapx.consumerName~f:ConsumerName.to_value));("ConsumerARN",(Option.mapx.consumerARN~f:ConsumerARN.to_value));("ConsumerStatus",(Option.mapx.consumerStatus~f:ConsumerStatus.to_value));("ConsumerCreationTimestamp",(Option.mapx.consumerCreationTimestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumerCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ConsumerCreationTimestamp")inletconsumerStatus=(Option.map~f:ConsumerStatus.of_xml)(Xml.childxml_arg0"ConsumerStatus")inletconsumerARN=(Option.map~f:ConsumerARN.of_xml)(Xml.childxml_arg0"ConsumerARN")inletconsumerName=(Option.map~f:ConsumerName.of_xml)(Xml.childxml_arg0"ConsumerName")inmake?consumerCreationTimestamp?consumerStatus?consumerARN?consumerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumerCreationTimestamp=field_mapjson__"ConsumerCreationTimestamp"Timestamp.of_jsoninletconsumerStatus=field_mapjson__"ConsumerStatus"ConsumerStatus.of_jsoninletconsumerARN=field_mapjson__"ConsumerARN"ConsumerARN.of_jsoninletconsumerName=field_mapjson__"ConsumerName"ConsumerName.of_jsoninmake?consumerCreationTimestamp?consumerStatus?consumerARN?consumerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of the consumer you registered. This type of object is returned by RegisterStreamConsumer."]moduleShardFilterType=structtypenonrect=|AFTER_SHARD_ID|AT_TRIM_HORIZON|FROM_TRIM_HORIZON|AT_LATEST|AT_TIMESTAMP|FROM_TIMESTAMP|Non_static_idofstringletmakei=iletto_string=function|AFTER_SHARD_ID->"AFTER_SHARD_ID"|AT_TRIM_HORIZON->"AT_TRIM_HORIZON"|FROM_TRIM_HORIZON->"FROM_TRIM_HORIZON"|AT_LATEST->"AT_LATEST"|AT_TIMESTAMP->"AT_TIMESTAMP"|FROM_TIMESTAMP->"FROM_TIMESTAMP"|Non_static_ids->sletof_string=function|"AFTER_SHARD_ID"->AFTER_SHARD_ID|"AT_TRIM_HORIZON"->AT_TRIM_HORIZON|"FROM_TRIM_HORIZON"->FROM_TRIM_HORIZON|"AT_LATEST"->AT_LATEST|"AT_TIMESTAMP"->AT_TIMESTAMP|"FROM_TIMESTAMP"->FROM_TIMESTAMP|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 ShardFilterType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ShardFilterType"j)letto_json=simple_to_jsonto_valueendmoduleConsumerCountObject=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ConsumerCountObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEnhancedMonitoringList=structtypenonrect=EnhancedMetrics.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EnhancedMetrics.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:EnhancedMetrics.of_xml)letof_jsonj=list_of_json~kind:"EnhancedMonitoringList"~of_json:EnhancedMetrics.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKeyId=structtypenonrect=stringletcontext_="KeyId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"KeyId"jletto_json=simple_to_jsonto_valueendmoduleMaxRecordSizeInKiB=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10240)>>=(fun()->check_int_mini~min:1024));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 MaxRecordSizeInKiB"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRetentionPeriodHours=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for RetentionPeriodHours"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleShardCountObject=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ShardCountObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStreamId=structtypenonrect=stringletcontext_="StreamId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:24)>>=(fun()->check_patterni~pattern:"[a-z0-9]{20}-[a-z0-9]{3}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StreamId"jletto_json=simple_to_jsonto_valueendmoduleWarmThroughputObject=structtypenonrect={targetMiBps:NaturalIntegerObject.toption[@ocaml.doc"The target warm throughput value on the stream. This indicates that the stream is currently scaling towards this target value."];currentMiBps:NaturalIntegerObject.toption[@ocaml.doc"The current warm throughput value on the stream. This is the write throughput in MiBps that the stream is currently scaled to handle."]}letmake?targetMiBps=fun?currentMiBps->fun()->{targetMiBps;currentMiBps}letto_valuex=structure_to_value[("TargetMiBps",(Option.mapx.targetMiBps~f:NaturalIntegerObject.to_value));("CurrentMiBps",(Option.mapx.currentMiBps~f:NaturalIntegerObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcurrentMiBps=(Option.map~f:NaturalIntegerObject.of_xml)(Xml.childxml_arg0"CurrentMiBps")inlettargetMiBps=(Option.map~f:NaturalIntegerObject.of_xml)(Xml.childxml_arg0"TargetMiBps")inmake?currentMiBps?targetMiBps()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcurrentMiBps=field_mapjson__"CurrentMiBps"NaturalIntegerObject.of_jsoninlettargetMiBps=field_mapjson__"TargetMiBps"NaturalIntegerObject.of_jsoninmake?currentMiBps?targetMiBps()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the warm throughput configuration on the stream. This is only present for On-Demand Kinesis Data Streams in accounts that have MinimumThroughputBillingCommitment enabled."]moduleBooleanObject=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_valueendmoduleShardList=structtypenonrect=Shard.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Shard.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:Shard.of_xml)letof_jsonj=list_of_json~kind:"ShardList"~of_json:Shard.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=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"Specifies that you do not have the permissions required to perform this operation."]moduleInvalidArgumentException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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"A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message."]moduleLimitExceededException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed."]moduleValidationException=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"Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only supported for data streams with the provisioned capacity mode."]modulePositiveIntegerObject=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:1);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for PositiveIntegerObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleScalingType=structtypenonrect=|UNIFORM_SCALING|Non_static_idofstringletmakei=iletto_string=function|UNIFORM_SCALING->"UNIFORM_SCALING"|Non_static_ids->sletof_string=function|"UNIFORM_SCALING"->UNIFORM_SCALING|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 ScalingType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScalingType"j)letto_json=simple_to_jsonto_valueendmoduleMinimumThroughputBillingCommitmentOutput=structtypenonrect={status:MinimumThroughputBillingCommitmentOutputStatus.toption[@ocaml.doc"The current status of the minimum throughput billing commitment."];startedAt:Timestamp.toption[@ocaml.doc"The timestamp when the commitment was started."];endedAt:Timestamp.toption[@ocaml.doc"The timestamp when the commitment was ended."];earliestAllowedEndAt:Timestamp.toption[@ocaml.doc"The earliest timestamp when the commitment can be ended."]}letmake?status=fun?startedAt->fun?endedAt->fun?earliestAllowedEndAt->fun()->{status;startedAt;endedAt;earliestAllowedEndAt}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:MinimumThroughputBillingCommitmentOutputStatus.to_value));("StartedAt",(Option.mapx.startedAt~f:Timestamp.to_value));("EndedAt",(Option.mapx.endedAt~f:Timestamp.to_value));("EarliestAllowedEndAt",(Option.mapx.earliestAllowedEndAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letearliestAllowedEndAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EarliestAllowedEndAt")inletendedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndedAt")inletstartedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartedAt")inletstatus=(Option.map~f:MinimumThroughputBillingCommitmentOutputStatus.of_xml)(Xml.childxml_arg0"Status")inmake?earliestAllowedEndAt?endedAt?startedAt?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letearliestAllowedEndAt=field_mapjson__"EarliestAllowedEndAt"Timestamp.of_jsoninletendedAt=field_mapjson__"EndedAt"Timestamp.of_jsoninletstartedAt=field_mapjson__"StartedAt"Timestamp.of_jsoninletstatus=field_mapjson__"Status"MinimumThroughputBillingCommitmentOutputStatus.of_jsoninmake?earliestAllowedEndAt?endedAt?startedAt?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the current status of minimum throughput billing commitment for an account."]moduleMinimumThroughputBillingCommitmentInput=structtypenonrect={status:MinimumThroughputBillingCommitmentInputStatus.t[@ocaml.doc"The desired status of the minimum throughput billing commitment."]}letcontext_="MinimumThroughputBillingCommitmentInput"letmake~status=fun()->{status}letto_valuex=structure_to_value[("Status",(Some(MinimumThroughputBillingCommitmentInputStatus.to_valuex.status)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=MinimumThroughputBillingCommitmentInputStatus.of_xml(Xml.child_exn~context:context_xml_arg0"Status")inmake~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_map_exnjson__"Status"MinimumThroughputBillingCommitmentInputStatus.of_jsoninmake~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the request parameters for configuring minimum throughput billing commitment. Minimum throughput billing commitments provide cost savings on on-demand data streams in exchange for committing to a minimum level of throughput usage. Commitments have a minimum duration of 24 hours that must be honored before they can be disabled. If you attempt to disable a commitment before the minimum commitment period ends, the commitment will be scheduled for automatic disable at the earliest allowed end time. You can cancel a pending disable by enabling the commitment again before the earliest allowed end time."]moduleResourceARN=structtypenonrect=stringletcontext_="ResourceARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws.*:kinesis:.*:\\d{12}:.*stream/\\S+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceARN"jletto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSubscribeToShardEventStream=structtypenonrect={subscribeToShardEvent:SubscribeToShardEvent.toption[@ocaml.doc"After you call SubscribeToShard, Kinesis Data Streams sends events of this type to your consumer. For an example of how to handle these events, see Enhanced Fan-Out Using the Kinesis Data Streams API."];resourceNotFoundException:ResourceNotFoundException.toption;resourceInUseException:ResourceInUseException.toption;kMSDisabledException:KMSDisabledException.toption;kMSInvalidStateException:KMSInvalidStateException.toption;kMSAccessDeniedException:KMSAccessDeniedException.toption;kMSNotFoundException:KMSNotFoundException.toption;kMSOptInRequired:KMSOptInRequired.toption;kMSThrottlingException:KMSThrottlingException.toption;internalFailureException:InternalFailureException.toption[@ocaml.doc"The processing of the request failed because of an unknown error, exception, or failure."]}letmake?subscribeToShardEvent=fun?resourceNotFoundException->fun?resourceInUseException->fun?kMSDisabledException->fun?kMSInvalidStateException->fun?kMSAccessDeniedException->fun?kMSNotFoundException->fun?kMSOptInRequired->fun?kMSThrottlingException->fun?internalFailureException->fun()->{subscribeToShardEvent;resourceNotFoundException;resourceInUseException;kMSDisabledException;kMSInvalidStateException;kMSAccessDeniedException;kMSNotFoundException;kMSOptInRequired;kMSThrottlingException;internalFailureException}letto_valuex=structure_to_value[("SubscribeToShardEvent",(Option.mapx.subscribeToShardEvent~f:SubscribeToShardEvent.to_value));("ResourceNotFoundException",(Option.mapx.resourceNotFoundException~f:ResourceNotFoundException.to_value));("ResourceInUseException",(Option.mapx.resourceInUseException~f:ResourceInUseException.to_value));("KMSDisabledException",(Option.mapx.kMSDisabledException~f:KMSDisabledException.to_value));("KMSInvalidStateException",(Option.mapx.kMSInvalidStateException~f:KMSInvalidStateException.to_value));("KMSAccessDeniedException",(Option.mapx.kMSAccessDeniedException~f:KMSAccessDeniedException.to_value));("KMSNotFoundException",(Option.mapx.kMSNotFoundException~f:KMSNotFoundException.to_value));("KMSOptInRequired",(Option.mapx.kMSOptInRequired~f:KMSOptInRequired.to_value));("KMSThrottlingException",(Option.mapx.kMSThrottlingException~f:KMSThrottlingException.to_value));("InternalFailureException",(Option.mapx.internalFailureException~f:InternalFailureException.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinternalFailureException=(Option.map~f:InternalFailureException.of_xml)(Xml.childxml_arg0"InternalFailureException")inletkMSThrottlingException=(Option.map~f:KMSThrottlingException.of_xml)(Xml.childxml_arg0"KMSThrottlingException")inletkMSOptInRequired=(Option.map~f:KMSOptInRequired.of_xml)(Xml.childxml_arg0"KMSOptInRequired")inletkMSNotFoundException=(Option.map~f:KMSNotFoundException.of_xml)(Xml.childxml_arg0"KMSNotFoundException")inletkMSAccessDeniedException=(Option.map~f:KMSAccessDeniedException.of_xml)(Xml.childxml_arg0"KMSAccessDeniedException")inletkMSInvalidStateException=(Option.map~f:KMSInvalidStateException.of_xml)(Xml.childxml_arg0"KMSInvalidStateException")inletkMSDisabledException=(Option.map~f:KMSDisabledException.of_xml)(Xml.childxml_arg0"KMSDisabledException")inletresourceInUseException=(Option.map~f:ResourceInUseException.of_xml)(Xml.childxml_arg0"ResourceInUseException")inletresourceNotFoundException=(Option.map~f:ResourceNotFoundException.of_xml)(Xml.childxml_arg0"ResourceNotFoundException")inletsubscribeToShardEvent=(Option.map~f:SubscribeToShardEvent.of_xml)(Xml.childxml_arg0"SubscribeToShardEvent")inmake?internalFailureException?kMSThrottlingException?kMSOptInRequired?kMSNotFoundException?kMSAccessDeniedException?kMSInvalidStateException?kMSDisabledException?resourceInUseException?resourceNotFoundException?subscribeToShardEvent()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinternalFailureException=field_mapjson__"InternalFailureException"InternalFailureException.of_jsoninletkMSThrottlingException=field_mapjson__"KMSThrottlingException"KMSThrottlingException.of_jsoninletkMSOptInRequired=field_mapjson__"KMSOptInRequired"KMSOptInRequired.of_jsoninletkMSNotFoundException=field_mapjson__"KMSNotFoundException"KMSNotFoundException.of_jsoninletkMSAccessDeniedException=field_mapjson__"KMSAccessDeniedException"KMSAccessDeniedException.of_jsoninletkMSInvalidStateException=field_mapjson__"KMSInvalidStateException"KMSInvalidStateException.of_jsoninletkMSDisabledException=field_mapjson__"KMSDisabledException"KMSDisabledException.of_jsoninletresourceInUseException=field_mapjson__"ResourceInUseException"ResourceInUseException.of_jsoninletresourceNotFoundException=field_mapjson__"ResourceNotFoundException"ResourceNotFoundException.of_jsoninletsubscribeToShardEvent=field_mapjson__"SubscribeToShardEvent"SubscribeToShardEvent.of_jsoninmake?internalFailureException?kMSThrottlingException?kMSOptInRequired?kMSNotFoundException?kMSAccessDeniedException?kMSInvalidStateException?kMSDisabledException?resourceInUseException?resourceNotFoundException?subscribeToShardEvent()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is a tagged union for all of the types of events an enhanced fan-out consumer can receive over HTTP/2 after a call to SubscribeToShard."]moduleStartingPosition=structtypenonrect={type_:ShardIteratorType.t[@ocaml.doc"You can set the starting position to one of the following values: AT_SEQUENCE_NUMBER: Start streaming from the position denoted by the sequence number specified in the SequenceNumber field. AFTER_SEQUENCE_NUMBER: Start streaming right after the position denoted by the sequence number specified in the SequenceNumber field. AT_TIMESTAMP: Start streaming from the position denoted by the time stamp specified in the Timestamp field. TRIM_HORIZON: Start streaming at the last untrimmed record in the shard, which is the oldest data record in the shard. LATEST: Start streaming just after the most recent record in the shard, so that you always read the most recent data in the shard."];sequenceNumber:SequenceNumber.toption[@ocaml.doc"The sequence number of the data record in the shard from which to start streaming. To specify a sequence number, set StartingPosition to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER."];timestamp:Timestamp.toption[@ocaml.doc"The time stamp of the data record from which to start reading. To specify a time stamp, set StartingPosition to Type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a record with this exact time stamp does not exist, records will be streamed from the next (later) record. If the time stamp is older than the current trim horizon, records will be streamed from the oldest untrimmed data record (TRIM_HORIZON)."]}letcontext_="StartingPosition"letmake?sequenceNumber=fun?timestamp->fun~type_->fun()->{sequenceNumber;timestamp;type_}letto_valuex=structure_to_value[("Type",(Some(ShardIteratorType.to_valuex.type_)));("SequenceNumber",(Option.mapx.sequenceNumber~f:SequenceNumber.to_value));("Timestamp",(Option.mapx.timestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Timestamp")inletsequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"SequenceNumber")inlettype_=ShardIteratorType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inmake?timestamp?sequenceNumber~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestamp=field_mapjson__"Timestamp"Timestamp.of_jsoninletsequenceNumber=field_mapjson__"SequenceNumber"SequenceNumber.of_jsoninlettype_=field_map_exnjson__"Type"ShardIteratorType.of_jsoninmake?timestamp?sequenceNumber~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The starting position in the data stream from which to start streaming."]modulePolicy=structtypenonrect=stringletcontext_="Policy"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:"Policy"jletto_json=simple_to_jsonto_valueendmoduleProvisionedThroughputExceededException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and Exponential Backoff in Amazon Web Services in the Amazon Web Services General Reference."]modulePutRecordsResultEntryList=structtypenonrect=PutRecordsResultEntry.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:500)>>=(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:PutRecordsResultEntry.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:PutRecordsResultEntry.of_xml)letof_jsonj=list_of_json~kind:"PutRecordsResultEntryList"~of_json:PutRecordsResultEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePutRecordsRequestEntryList=structtypenonrect=PutRecordsRequestEntry.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:500)>>=(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:PutRecordsRequestEntry.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:PutRecordsRequestEntry.of_xml)letof_jsonj=list_of_json~kind:"PutRecordsRequestEntryList"~of_json:PutRecordsRequestEntry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTagsForStreamInputLimit=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 ListTagsForStreamInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleExpiredNextTokenException=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 pagination token passed to the operation is expired."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1048576)>>=(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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleStreamNameList=structtypenonrect=StreamName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamName.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:StreamName.of_xml)letof_jsonj=list_of_json~kind:"StreamNameList"~of_json:StreamName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStreamSummaryList=structtypenonrect=StreamSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamSummary.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:StreamSummary.of_xml)letof_jsonj=list_of_json~kind:"StreamSummaryList"~of_json:StreamSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListStreamsInputLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 ListStreamsInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleConsumerList=structtypenonrect=Consumer.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Consumer.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:Consumer.of_xml)letof_jsonj=list_of_json~kind:"ConsumerList"~of_json:Consumer.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListStreamConsumersInputLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 ListStreamConsumersInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleListShardsInputLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 ListShardsInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleShardFilter=structtypenonrect={type_:ShardFilterType.t[@ocaml.doc"The shard type specified in the ShardFilter parameter. This is a required property of the ShardFilter parameter. You can specify the following valid values: AFTER_SHARD_ID - the response includes all the shards, starting with the shard whose ID immediately follows the ShardId that you provided. AT_TRIM_HORIZON - the response includes all the shards that were open at TRIM_HORIZON. FROM_TRIM_HORIZON - (default), the response includes all the shards within the retention period of the data stream (trim to tip). AT_LATEST - the response includes only the currently open shards of the data stream. AT_TIMESTAMP - the response includes all shards whose start timestamp is less than or equal to the given timestamp and end timestamp is greater than or equal to the given timestamp or still open. FROM_TIMESTAMP - the response incldues all closed shards whose end timestamp is greater than or equal to the given timestamp and also all open shards. Corrected to TRIM_HORIZON of the data stream if FROM_TIMESTAMP is less than the TRIM_HORIZON value."];shardId:ShardId.toption[@ocaml.doc"The exclusive start shardID speified in the ShardFilter parameter. This property can only be used if the AFTER_SHARD_ID shard type is specified."];timestamp:Timestamp.toption[@ocaml.doc"The timestamps specified in the ShardFilter parameter. A timestamp is a Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. This property can only be used if FROM_TIMESTAMP or AT_TIMESTAMP shard types are specified."]}letcontext_="ShardFilter"letmake?shardId=fun?timestamp->fun~type_->fun()->{shardId;timestamp;type_}letto_valuex=structure_to_value[("Type",(Some(ShardFilterType.to_valuex.type_)));("ShardId",(Option.mapx.shardId~f:ShardId.to_value));("Timestamp",(Option.mapx.timestamp~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Timestamp")inletshardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ShardId")inlettype_=ShardFilterType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inmake?timestamp?shardId~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimestamp=field_mapjson__"Timestamp"Timestamp.of_jsoninletshardId=field_mapjson__"ShardId"ShardId.of_jsoninlettype_=field_map_exnjson__"Type"ShardFilterType.of_jsoninmake?timestamp?shardId~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request parameter used to filter out the response of the ListShards API."]moduleShardIterator=structtypenonrect=stringletcontext_="ShardIterator"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:512)>>=(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:"ShardIterator"jletto_json=simple_to_jsonto_valueendmoduleExpiredIteratorException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"A message that provides information about the error."]}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 provided iterator exceeds the maximum age allowed."]moduleGetRecordsInputLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 GetRecordsInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStreamDescriptionSummary=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream being described."];streamARN:StreamARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the stream being described."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];streamStatus:StreamStatus.toption[@ocaml.doc"The current status of the stream being described. The stream status is one of the following states: CREATING - The stream is being created. Kinesis Data Streams immediately returns and sets StreamStatus to CREATING. DELETING - The stream is being deleted. The specified stream is in the DELETING state until Kinesis Data Streams completes the deletion. ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream. UPDATING - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING state."];streamModeDetails:StreamModeDetails.toption[@ocaml.doc"Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand ycapacity mode and a provisioned capacity mode for your data streams."];retentionPeriodHours:RetentionPeriodHours.toption[@ocaml.doc"The current retention period, in hours."];streamCreationTimestamp:Timestamp.toption[@ocaml.doc"The approximate time that the stream was created."];enhancedMonitoring:EnhancedMonitoringList.toption[@ocaml.doc"Represents the current enhanced monitoring settings of the stream."];encryptionType:EncryptionType.toption[@ocaml.doc"The encryption type used. This value is one of the following: KMS NONE"];keyId:KeyId.toption[@ocaml.doc"The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis. Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName Globally unique key ID example: 12345678-1234-1234-1234-123456789012 Alias name example: alias/MyAliasName Master key owned by Kinesis Data Streams: alias/aws/kinesis"];openShardCount:ShardCountObject.toption[@ocaml.doc"The number of open shards in the stream."];consumerCount:ConsumerCountObject.toption[@ocaml.doc"The number of enhanced fan-out consumers registered with the stream."];warmThroughput:WarmThroughputObject.toption[@ocaml.doc"The warm throughput in MB/s for the stream. This represents the throughput capacity that will be immediately available for write operations."];maxRecordSizeInKiB:MaxRecordSizeInKiB.toption[@ocaml.doc"The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream."]}letmake?streamName=fun?streamARN->fun?streamId->fun?streamStatus->fun?streamModeDetails->fun?retentionPeriodHours->fun?streamCreationTimestamp->fun?enhancedMonitoring->fun?encryptionType->fun?keyId->fun?openShardCount->fun?consumerCount->fun?warmThroughput->fun?maxRecordSizeInKiB->fun()->{streamName;streamARN;streamId;streamStatus;streamModeDetails;retentionPeriodHours;streamCreationTimestamp;enhancedMonitoring;encryptionType;keyId;openShardCount;consumerCount;warmThroughput;maxRecordSizeInKiB}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("StreamStatus",(Option.mapx.streamStatus~f:StreamStatus.to_value));("StreamModeDetails",(Option.mapx.streamModeDetails~f:StreamModeDetails.to_value));("RetentionPeriodHours",(Option.mapx.retentionPeriodHours~f:RetentionPeriodHours.to_value));("StreamCreationTimestamp",(Option.mapx.streamCreationTimestamp~f:Timestamp.to_value));("EnhancedMonitoring",(Option.mapx.enhancedMonitoring~f:EnhancedMonitoringList.to_value));("EncryptionType",(Option.mapx.encryptionType~f:EncryptionType.to_value));("KeyId",(Option.mapx.keyId~f:KeyId.to_value));("OpenShardCount",(Option.mapx.openShardCount~f:ShardCountObject.to_value));("ConsumerCount",(Option.mapx.consumerCount~f:ConsumerCountObject.to_value));("WarmThroughput",(Option.mapx.warmThroughput~f:WarmThroughputObject.to_value));("MaxRecordSizeInKiB",(Option.mapx.maxRecordSizeInKiB~f:MaxRecordSizeInKiB.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxRecordSizeInKiB=(Option.map~f:MaxRecordSizeInKiB.of_xml)(Xml.childxml_arg0"MaxRecordSizeInKiB")inletwarmThroughput=(Option.map~f:WarmThroughputObject.of_xml)(Xml.childxml_arg0"WarmThroughput")inletconsumerCount=(Option.map~f:ConsumerCountObject.of_xml)(Xml.childxml_arg0"ConsumerCount")inletopenShardCount=(Option.map~f:ShardCountObject.of_xml)(Xml.childxml_arg0"OpenShardCount")inletkeyId=(Option.map~f:KeyId.of_xml)(Xml.childxml_arg0"KeyId")inletencryptionType=(Option.map~f:EncryptionType.of_xml)(Xml.childxml_arg0"EncryptionType")inletenhancedMonitoring=(Option.map~f:EnhancedMonitoringList.of_xml)(Xml.childxml_arg0"EnhancedMonitoring")inletstreamCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StreamCreationTimestamp")inletretentionPeriodHours=(Option.map~f:RetentionPeriodHours.of_xml)(Xml.childxml_arg0"RetentionPeriodHours")inletstreamModeDetails=(Option.map~f:StreamModeDetails.of_xml)(Xml.childxml_arg0"StreamModeDetails")inletstreamStatus=(Option.map~f:StreamStatus.of_xml)(Xml.childxml_arg0"StreamStatus")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?maxRecordSizeInKiB?warmThroughput?consumerCount?openShardCount?keyId?encryptionType?enhancedMonitoring?streamCreationTimestamp?retentionPeriodHours?streamModeDetails?streamStatus?streamId?streamARN?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxRecordSizeInKiB=field_mapjson__"MaxRecordSizeInKiB"MaxRecordSizeInKiB.of_jsoninletwarmThroughput=field_mapjson__"WarmThroughput"WarmThroughputObject.of_jsoninletconsumerCount=field_mapjson__"ConsumerCount"ConsumerCountObject.of_jsoninletopenShardCount=field_mapjson__"OpenShardCount"ShardCountObject.of_jsoninletkeyId=field_mapjson__"KeyId"KeyId.of_jsoninletencryptionType=field_mapjson__"EncryptionType"EncryptionType.of_jsoninletenhancedMonitoring=field_mapjson__"EnhancedMonitoring"EnhancedMonitoringList.of_jsoninletstreamCreationTimestamp=field_mapjson__"StreamCreationTimestamp"Timestamp.of_jsoninletretentionPeriodHours=field_mapjson__"RetentionPeriodHours"RetentionPeriodHours.of_jsoninletstreamModeDetails=field_mapjson__"StreamModeDetails"StreamModeDetails.of_jsoninletstreamStatus=field_mapjson__"StreamStatus"StreamStatus.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?maxRecordSizeInKiB?warmThroughput?consumerCount?openShardCount?keyId?encryptionType?enhancedMonitoring?streamCreationTimestamp?retentionPeriodHours?streamModeDetails?streamStatus?streamId?streamARN?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for DescribeStreamSummary"]moduleStreamDescription=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream being described."];streamARN:StreamARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the stream being described."];streamStatus:StreamStatus.toption[@ocaml.doc"The current status of the stream being described. The stream status is one of the following states: CREATING - The stream is being created. Kinesis Data Streams immediately returns and sets StreamStatus to CREATING. DELETING - The stream is being deleted. The specified stream is in the DELETING state until Kinesis Data Streams completes the deletion. ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream. UPDATING - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING state."];streamModeDetails:StreamModeDetails.toption[@ocaml.doc"Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams."];shards:ShardList.toption[@ocaml.doc"The shards that comprise the stream."];hasMoreShards:BooleanObject.toption[@ocaml.doc"If set to true, more shards in the stream are available to describe."];retentionPeriodHours:RetentionPeriodHours.toption[@ocaml.doc"The current retention period, in hours. Minimum value of 24. Maximum value of 168."];streamCreationTimestamp:Timestamp.toption[@ocaml.doc"The approximate time that the stream was created."];enhancedMonitoring:EnhancedMonitoringList.toption[@ocaml.doc"Represents the current enhanced monitoring settings of the stream."];encryptionType:EncryptionType.toption[@ocaml.doc"The server-side encryption type used on the stream. This parameter can be one of the following values: NONE: Do not encrypt the records in the stream. KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key."];keyId:KeyId.toption[@ocaml.doc"The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis. Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName Globally unique key ID example: 12345678-1234-1234-1234-123456789012 Alias name example: alias/MyAliasName Master key owned by Kinesis Data Streams: alias/aws/kinesis"]}letmake?streamName=fun?streamARN->fun?streamStatus->fun?streamModeDetails->fun?shards->fun?hasMoreShards->fun?retentionPeriodHours->fun?streamCreationTimestamp->fun?enhancedMonitoring->fun?encryptionType->fun?keyId->fun()->{streamName;streamARN;streamStatus;streamModeDetails;shards;hasMoreShards;retentionPeriodHours;streamCreationTimestamp;enhancedMonitoring;encryptionType;keyId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamStatus",(Option.mapx.streamStatus~f:StreamStatus.to_value));("StreamModeDetails",(Option.mapx.streamModeDetails~f:StreamModeDetails.to_value));("Shards",(Option.mapx.shards~f:ShardList.to_value));("HasMoreShards",(Option.mapx.hasMoreShards~f:BooleanObject.to_value));("RetentionPeriodHours",(Option.mapx.retentionPeriodHours~f:RetentionPeriodHours.to_value));("StreamCreationTimestamp",(Option.mapx.streamCreationTimestamp~f:Timestamp.to_value));("EnhancedMonitoring",(Option.mapx.enhancedMonitoring~f:EnhancedMonitoringList.to_value));("EncryptionType",(Option.mapx.encryptionType~f:EncryptionType.to_value));("KeyId",(Option.mapx.keyId~f:KeyId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyId=(Option.map~f:KeyId.of_xml)(Xml.childxml_arg0"KeyId")inletencryptionType=(Option.map~f:EncryptionType.of_xml)(Xml.childxml_arg0"EncryptionType")inletenhancedMonitoring=(Option.map~f:EnhancedMonitoringList.of_xml)(Xml.childxml_arg0"EnhancedMonitoring")inletstreamCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StreamCreationTimestamp")inletretentionPeriodHours=(Option.map~f:RetentionPeriodHours.of_xml)(Xml.childxml_arg0"RetentionPeriodHours")inlethasMoreShards=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"HasMoreShards")inletshards=(Option.map~f:ShardList.of_xml)(Xml.childxml_arg0"Shards")inletstreamModeDetails=(Option.map~f:StreamModeDetails.of_xml)(Xml.childxml_arg0"StreamModeDetails")inletstreamStatus=(Option.map~f:StreamStatus.of_xml)(Xml.childxml_arg0"StreamStatus")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?keyId?encryptionType?enhancedMonitoring?streamCreationTimestamp?retentionPeriodHours?hasMoreShards?shards?streamModeDetails?streamStatus?streamARN?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyId=field_mapjson__"KeyId"KeyId.of_jsoninletencryptionType=field_mapjson__"EncryptionType"EncryptionType.of_jsoninletenhancedMonitoring=field_mapjson__"EnhancedMonitoring"EnhancedMonitoringList.of_jsoninletstreamCreationTimestamp=field_mapjson__"StreamCreationTimestamp"Timestamp.of_jsoninletretentionPeriodHours=field_mapjson__"RetentionPeriodHours"RetentionPeriodHours.of_jsoninlethasMoreShards=field_mapjson__"HasMoreShards"BooleanObject.of_jsoninletshards=field_mapjson__"Shards"ShardList.of_jsoninletstreamModeDetails=field_mapjson__"StreamModeDetails"StreamModeDetails.of_jsoninletstreamStatus=field_mapjson__"StreamStatus"StreamStatus.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?keyId?encryptionType?enhancedMonitoring?streamCreationTimestamp?retentionPeriodHours?hasMoreShards?shards?streamModeDetails?streamStatus?streamARN?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for DescribeStream."]moduleDescribeStreamInputLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 DescribeStreamInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleConsumerDescription=structtypenonrect={consumerName:ConsumerName.toption[@ocaml.doc"The name of the consumer is something you choose when you register the consumer."];consumerARN:ConsumerARN.toption[@ocaml.doc"When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard. If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs."];consumerStatus:ConsumerStatus.toption[@ocaml.doc"A consumer can't read data while in the CREATING or DELETING states."];consumerCreationTimestamp:Timestamp.toption;streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream with which you registered the consumer."]}letmake?consumerName=fun?consumerARN->fun?consumerStatus->fun?consumerCreationTimestamp->fun?streamARN->fun()->{consumerName;consumerARN;consumerStatus;consumerCreationTimestamp;streamARN}letto_valuex=structure_to_value[("ConsumerName",(Option.mapx.consumerName~f:ConsumerName.to_value));("ConsumerARN",(Option.mapx.consumerARN~f:ConsumerARN.to_value));("ConsumerStatus",(Option.mapx.consumerStatus~f:ConsumerStatus.to_value));("ConsumerCreationTimestamp",(Option.mapx.consumerCreationTimestamp~f:Timestamp.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletconsumerCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"ConsumerCreationTimestamp")inletconsumerStatus=(Option.map~f:ConsumerStatus.of_xml)(Xml.childxml_arg0"ConsumerStatus")inletconsumerARN=(Option.map~f:ConsumerARN.of_xml)(Xml.childxml_arg0"ConsumerARN")inletconsumerName=(Option.map~f:ConsumerName.of_xml)(Xml.childxml_arg0"ConsumerName")inmake?streamARN?consumerCreationTimestamp?consumerStatus?consumerARN?consumerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletconsumerCreationTimestamp=field_mapjson__"ConsumerCreationTimestamp"Timestamp.of_jsoninletconsumerStatus=field_mapjson__"ConsumerStatus"ConsumerStatus.of_jsoninletconsumerARN=field_mapjson__"ConsumerARN"ConsumerARN.of_jsoninletconsumerName=field_mapjson__"ConsumerName"ConsumerName.of_jsoninmake?streamARN?consumerCreationTimestamp?consumerStatus?consumerARN?consumerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a registered consumer. This type of object is returned by DescribeStreamConsumer."]moduleOnDemandStreamCountLimitObject=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for OnDemandStreamCountLimitObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleOnDemandStreamCountObject=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000000)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for OnDemandStreamCountObject"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleUpdateStreamWarmThroughputOutput=structtypenonrect={streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream that was updated."];streamName:StreamName.toption[@ocaml.doc"The name of the stream that was updated."];warmThroughput:WarmThroughputObject.toption[@ocaml.doc"Specifies the updated warm throughput configuration for your data stream."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamARN=fun?streamName->fun?warmThroughput->fun()->{streamARN;streamName;warmThroughput}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`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))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("WarmThroughput",(Option.mapx.warmThroughput~f:WarmThroughputObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughput=(Option.map~f:WarmThroughputObject.of_xml)(Xml.childxml_arg0"WarmThroughput")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inmake?warmThroughput?streamName?streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughput=field_mapjson__"WarmThroughput"WarmThroughputObject.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninmake?warmThroughput?streamName?streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the warm throughput configuration for the specified Amazon Kinesis Data Streams on-demand data stream. This operation allows you to proactively scale your on-demand data stream to a specified throughput level, enabling better performance for sudden traffic spikes. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Updating the warm throughput is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING. This operation is only supported for data streams with the on-demand capacity mode in accounts that have MinimumThroughputBillingCommitment enabled. Provisioned capacity mode streams do not support warm throughput configuration. This operation has the following default limits. By default, you cannot do the following: Scale to more than 10 GiBps for an on-demand stream. This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException. For the default limits for an Amazon Web Services account, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the limits form."]moduleUpdateStreamWarmThroughputInput=structtypenonrect={streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream to be updated."];streamName:StreamName.toption[@ocaml.doc"The name of the stream to be updated."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];warmThroughputMiBps:NaturalIntegerObject.t[@ocaml.doc"The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations."]}letcontext_="UpdateStreamWarmThroughputInput"letmake?streamARN=fun?streamName->fun?streamId->fun~warmThroughputMiBps->fun()->{streamARN;streamName;streamId;warmThroughputMiBps}letto_valuex=structure_to_value[("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("WarmThroughputMiBps",(Some(NaturalIntegerObject.to_valuex.warmThroughputMiBps)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughputMiBps=NaturalIntegerObject.of_xml(Xml.child_exn~context:context_xml_arg0"WarmThroughputMiBps")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inmake~warmThroughputMiBps?streamId?streamName?streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughputMiBps=field_map_exnjson__"WarmThroughputMiBps"NaturalIntegerObject.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninmake~warmThroughputMiBps?streamId?streamName?streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the warm throughput configuration for the specified Amazon Kinesis Data Streams on-demand data stream. This operation allows you to proactively scale your on-demand data stream to a specified throughput level, enabling better performance for sudden traffic spikes. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Updating the warm throughput is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING. This operation is only supported for data streams with the on-demand capacity mode in accounts that have MinimumThroughputBillingCommitment enabled. Provisioned capacity mode streams do not support warm throughput configuration. This operation has the following default limits. By default, you cannot do the following: Scale to more than 10 GiBps for an on-demand stream. This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException. For the default limits for an Amazon Web Services account, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the limits form."]moduleUpdateStreamModeInput=structtypenonrect={streamARN:StreamARN.t[@ocaml.doc"Specifies the ARN of the data stream whose capacity mode you want to update."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];streamModeDetails:StreamModeDetails.t[@ocaml.doc"Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams."];warmThroughputMiBps:NaturalIntegerObject.toption[@ocaml.doc"The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations. This field is only valid when the stream mode is being updated to on-demand."]}letcontext_="UpdateStreamModeInput"letmake?streamId=fun?warmThroughputMiBps->fun~streamARN->fun~streamModeDetails->fun()->{streamId;warmThroughputMiBps;streamARN;streamModeDetails}letto_valuex=structure_to_value[("StreamARN",(Some(StreamARN.to_valuex.streamARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("StreamModeDetails",(Some(StreamModeDetails.to_valuex.streamModeDetails)));("WarmThroughputMiBps",(Option.mapx.warmThroughputMiBps~f:NaturalIntegerObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarmThroughputMiBps=(Option.map~f:NaturalIntegerObject.of_xml)(Xml.childxml_arg0"WarmThroughputMiBps")inletstreamModeDetails=StreamModeDetails.of_xml(Xml.child_exn~context:context_xml_arg0"StreamModeDetails")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=StreamARN.of_xml(Xml.child_exn~context:context_xml_arg0"StreamARN")inmake?warmThroughputMiBps~streamModeDetails?streamId~streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarmThroughputMiBps=field_mapjson__"WarmThroughputMiBps"NaturalIntegerObject.of_jsoninletstreamModeDetails=field_map_exnjson__"StreamModeDetails"StreamModeDetails.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_map_exnjson__"StreamARN"StreamARN.of_jsoninmake?warmThroughputMiBps~streamModeDetails?streamId~streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data stream. If you'd still like to proactively scale your on-demand data stream\226\128\153s capacity, you can unlock the warm throughput feature for on-demand data streams by enabling MinimumThroughputBillingCommitment for your account. Once your account has MinimumThroughputBillingCommitment enabled, you can specify the warm throughput in MiB per second that your stream can support in writes."]moduleUpdateShardCountOutput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream."];currentShardCount:PositiveIntegerObject.toption[@ocaml.doc"The current number of shards."];targetShardCount:PositiveIntegerObject.toption[@ocaml.doc"The updated number of shards."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamName=fun?currentShardCount->fun?targetShardCount->fun?streamARN->fun()->{streamName;currentShardCount;targetShardCount;streamARN}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`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))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("CurrentShardCount",(Option.mapx.currentShardCount~f:PositiveIntegerObject.to_value));("TargetShardCount",(Option.mapx.targetShardCount~f:PositiveIntegerObject.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inlettargetShardCount=(Option.map~f:PositiveIntegerObject.of_xml)(Xml.childxml_arg0"TargetShardCount")inletcurrentShardCount=(Option.map~f:PositiveIntegerObject.of_xml)(Xml.childxml_arg0"CurrentShardCount")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamARN?targetShardCount?currentShardCount?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninlettargetShardCount=field_mapjson__"TargetShardCount"PositiveIntegerObject.of_jsoninletcurrentShardCount=field_mapjson__"CurrentShardCount"PositiveIntegerObject.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamARN?targetShardCount?currentShardCount?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the shard count of the specified stream to the specified number of shards. This API is only supported for the data streams with the provisioned capacity mode. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Updating the shard count is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING. To update the shard count, Kinesis Data Streams performs splits or merges on individual shards. This can cause short-lived shards to be created, in addition to the final shards. These short-lived shards count towards your total shard limit for your account in the Region. When using this operation, we recommend that you specify a target shard count that is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling action might take longer to complete. This operation has the following default limits. By default, you cannot do the following: Scale more than ten times per rolling 24-hour period per stream Scale up to more than double your current shard count for a stream Scale down below half your current shard count for a stream Scale up to more than 10000 shards in a stream Scale a stream with more than 10000 shards down unless the result is less than 10000 shards Scale up to more than the shard limit for your account Make over 10 TPS. TPS over 10 will trigger the LimitExceededException For the default limits for an Amazon Web Services account, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the limits form."]moduleUpdateShardCountInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream."];targetShardCount:PositiveIntegerObject.t[@ocaml.doc"The new number of shards. This value has the following default limits. By default, you cannot do the following: Set this value to more than double your current shard count for a stream. Set this value below half your current shard count for a stream. Set this value to more than 10000 shards in a stream (the default limit for shard count per stream is 10000 per account per region), unless you request a limit increase. Scale a stream with more than 10000 shards down unless you set this value to less than 10000 shards."];scalingType:ScalingType.t[@ocaml.doc"The scaling type. Uniform scaling creates shards of equal size."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="UpdateShardCountInput"letmake?streamName=fun?streamARN->fun?streamId->fun~targetShardCount->fun~scalingType->fun()->{streamName;streamARN;streamId;targetShardCount;scalingType}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("TargetShardCount",(Some(PositiveIntegerObject.to_valuex.targetShardCount)));("ScalingType",(Some(ScalingType.to_valuex.scalingType)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletscalingType=ScalingType.of_xml(Xml.child_exn~context:context_xml_arg0"ScalingType")inlettargetShardCount=PositiveIntegerObject.of_xml(Xml.child_exn~context:context_xml_arg0"TargetShardCount")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~scalingType~targetShardCount?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletscalingType=field_map_exnjson__"ScalingType"ScalingType.of_jsoninlettargetShardCount=field_map_exnjson__"TargetShardCount"PositiveIntegerObject.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~scalingType~targetShardCount?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the shard count of the specified stream to the specified number of shards. This API is only supported for the data streams with the provisioned capacity mode. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Updating the shard count is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING. To update the shard count, Kinesis Data Streams performs splits or merges on individual shards. This can cause short-lived shards to be created, in addition to the final shards. These short-lived shards count towards your total shard limit for your account in the Region. When using this operation, we recommend that you specify a target shard count that is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling action might take longer to complete. This operation has the following default limits. By default, you cannot do the following: Scale more than ten times per rolling 24-hour period per stream Scale up to more than double your current shard count for a stream Scale down below half your current shard count for a stream Scale up to more than 10000 shards in a stream Scale a stream with more than 10000 shards down unless the result is less than 10000 shards Scale up to more than the shard limit for your account Make over 10 TPS. TPS over 10 will trigger the LimitExceededException For the default limits for an Amazon Web Services account, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the limits form."]moduleUpdateMaxRecordSizeInput=structtypenonrect={streamARN:StreamARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the stream for the MaxRecordSize update."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];maxRecordSizeInKiB:MaxRecordSizeInKiB.t[@ocaml.doc"The maximum record size of a single record in KiB that you can write to, and read from a stream. Specify a value between 1024 and 10240 KiB (1 to 10 MiB). If you specify a value that is out of this range, UpdateMaxRecordSize sends back an ValidationException message."]}letcontext_="UpdateMaxRecordSizeInput"letmake?streamARN=fun?streamId->fun~maxRecordSizeInKiB->fun()->{streamARN;streamId;maxRecordSizeInKiB}letto_valuex=structure_to_value[("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("MaxRecordSizeInKiB",(Some(MaxRecordSizeInKiB.to_valuex.maxRecordSizeInKiB)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxRecordSizeInKiB=MaxRecordSizeInKiB.of_xml(Xml.child_exn~context:context_xml_arg0"MaxRecordSizeInKiB")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inmake~maxRecordSizeInKiB?streamId?streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxRecordSizeInKiB=field_map_exnjson__"MaxRecordSizeInKiB"MaxRecordSizeInKiB.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninmake~maxRecordSizeInKiB?streamId?streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This allows you to update the MaxRecordSize of a single record that you can write to, and read from a stream. You can ingest and digest single records up to 10240 KiB."]moduleUpdateAccountSettingsOutput=structtypenonrect={minimumThroughputBillingCommitment:MinimumThroughputBillingCommitmentOutput.toption[@ocaml.doc"The updated configuration of the minimum throughput billing commitment for your account."]}typenonrecerror=[`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?minimumThroughputBillingCommitment=fun()->{minimumThroughputBillingCommitment}leterror_of_jsonnamejson=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MinimumThroughputBillingCommitment",(Option.mapx.minimumThroughputBillingCommitment~f:MinimumThroughputBillingCommitmentOutput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letminimumThroughputBillingCommitment=(Option.map~f:MinimumThroughputBillingCommitmentOutput.of_xml)(Xml.childxml_arg0"MinimumThroughputBillingCommitment")inmake?minimumThroughputBillingCommitment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letminimumThroughputBillingCommitment=field_mapjson__"MinimumThroughputBillingCommitment"MinimumThroughputBillingCommitmentOutput.of_jsoninmake?minimumThroughputBillingCommitment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the account-level settings for Amazon Kinesis Data Streams. Updating account settings is a synchronous operation. Upon receiving the request, Kinesis Data Streams will return immediately with your account\226\128\153s updated settings. API limits Certain account configurations have minimum commitment windows. Attempting to update your settings prior to the end of the minimum commitment window might have certain restrictions. This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException."]moduleUpdateAccountSettingsInput=structtypenonrect={minimumThroughputBillingCommitment:MinimumThroughputBillingCommitmentInput.t[@ocaml.doc"Specifies the minimum throughput billing commitment configuration for your account."]}letcontext_="UpdateAccountSettingsInput"letmake~minimumThroughputBillingCommitment=fun()->{minimumThroughputBillingCommitment}letto_valuex=structure_to_value[("MinimumThroughputBillingCommitment",(Some(MinimumThroughputBillingCommitmentInput.to_valuex.minimumThroughputBillingCommitment)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letminimumThroughputBillingCommitment=MinimumThroughputBillingCommitmentInput.of_xml(Xml.child_exn~context:context_xml_arg0"MinimumThroughputBillingCommitment")inmake~minimumThroughputBillingCommitment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letminimumThroughputBillingCommitment=field_map_exnjson__"MinimumThroughputBillingCommitment"MinimumThroughputBillingCommitmentInput.of_jsoninmake~minimumThroughputBillingCommitment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the account-level settings for Amazon Kinesis Data Streams. Updating account settings is a synchronous operation. Upon receiving the request, Kinesis Data Streams will return immediately with your account\226\128\153s updated settings. API limits Certain account configurations have minimum commitment windows. Attempting to update your settings prior to the end of the minimum commitment window might have certain restrictions. This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException."]moduleUntagResourceInput=structtypenonrect={tagKeys:TagKeyList.t[@ocaml.doc"A list of tag key-value pairs. Existing tags of the resource whose keys are members of this list will be removed from the Kinesis resource."];resourceARN:ResourceARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Kinesis resource from which to remove tags."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="UntagResourceInput"letmake?streamId=fun~tagKeys->fun~resourceARN->fun()->{streamId;tagKeys;resourceARN}letto_valuex=structure_to_value[("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)));("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inlettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inmake?streamId~resourceARN~tagKeys()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninlettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninmake?streamId~resourceARN~tagKeys()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified Kinesis resource. Removed tags are deleted and can't be recovered after this operation completes successfully."]moduleTagResourceInput=structtypenonrect={tags:TagMap.t[@ocaml.doc"An array of tags to be added to the Kinesis resource. A tag consists of a required key and an optional value. You can add up to 50 tags per resource. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."];resourceARN:ResourceARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Kinesis resource to which to add tags."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="TagResourceInput"letmake?streamId=fun~tags->fun~resourceARN->fun()->{streamId;tags;resourceARN}letto_valuex=structure_to_value[("Tags",(Some(TagMap.to_valuex.tags)));("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inlettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inmake?streamId~resourceARN~tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninlettags=field_map_exnjson__"Tags"TagMap.of_jsoninmake?streamId~resourceARN~tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates tags for the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. You can assign up to 50 tags to a Kinesis resource."]moduleSubscribeToShardOutput=structtypenonrect={eventStream:SubscribeToShardEventStream.toption[@ocaml.doc"The event stream that your consumer can use to read records from the shard."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?eventStream=fun()->{eventStream}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.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))]|`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[("EventStream",(Option.mapx.eventStream~f:SubscribeToShardEventStream.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventStream=(Option.map~f:SubscribeToShardEventStream.of_xml)(Xml.childxml_arg0"EventStream")inmake?eventStream()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventStream=field_mapjson__"EventStream"SubscribeToShardEventStream.of_jsoninmake?eventStream()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation establishes an HTTP/2 connection between the consumer you specify in the ConsumerARN parameter and the shard you specify in the ShardId parameter. After the connection is successfully established, Kinesis Data Streams pushes records from the shard to the consumer over this connection. Before you call this operation, call RegisterStreamConsumer to register the consumer with Kinesis Data Streams. When the SubscribeToShard call succeeds, your consumer starts receiving events of type SubscribeToShardEvent over the HTTP/2 connection for up to 5 minutes, after which time you need to call SubscribeToShard again to renew the subscription if you want to continue to receive records. You can make one call to SubscribeToShard per second per registered consumer per shard. For example, if you have a 4000 shard stream and two registered stream consumers, you can make one SubscribeToShard request per second for each combination of shard and registered consumer, allowing you to subscribe both consumers to all 4000 shards in one second. If you call SubscribeToShard again with the same ConsumerARN and ShardId within 5 seconds of a successful call, you'll get a ResourceInUseException. If you call SubscribeToShard 5 seconds or more after a successful call, the second call takes over the subscription and the previous connection expires or fails with a ResourceInUseException. For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API."]moduleSubscribeToShardInput=structtypenonrect={consumerARN:ConsumerARN.t[@ocaml.doc"For this parameter, use the value you obtained when you called RegisterStreamConsumer."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];shardId:ShardId.t[@ocaml.doc"The ID of the shard you want to subscribe to. To see a list of all the shards for a given stream, use ListShards."];startingPosition:StartingPosition.t[@ocaml.doc"The starting position in the data stream from which to start streaming."]}letcontext_="SubscribeToShardInput"letmake?streamId=fun~consumerARN->fun~shardId->fun~startingPosition->fun()->{streamId;consumerARN;shardId;startingPosition}letto_valuex=structure_to_value[("ConsumerARN",(Some(ConsumerARN.to_valuex.consumerARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("ShardId",(Some(ShardId.to_valuex.shardId)));("StartingPosition",(Some(StartingPosition.to_valuex.startingPosition)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartingPosition=StartingPosition.of_xml(Xml.child_exn~context:context_xml_arg0"StartingPosition")inletshardId=ShardId.of_xml(Xml.child_exn~context:context_xml_arg0"ShardId")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletconsumerARN=ConsumerARN.of_xml(Xml.child_exn~context:context_xml_arg0"ConsumerARN")inmake~startingPosition~shardId?streamId~consumerARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartingPosition=field_map_exnjson__"StartingPosition"StartingPosition.of_jsoninletshardId=field_map_exnjson__"ShardId"ShardId.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletconsumerARN=field_map_exnjson__"ConsumerARN"ConsumerARN.of_jsoninmake~startingPosition~shardId?streamId~consumerARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation establishes an HTTP/2 connection between the consumer you specify in the ConsumerARN parameter and the shard you specify in the ShardId parameter. After the connection is successfully established, Kinesis Data Streams pushes records from the shard to the consumer over this connection. Before you call this operation, call RegisterStreamConsumer to register the consumer with Kinesis Data Streams. When the SubscribeToShard call succeeds, your consumer starts receiving events of type SubscribeToShardEvent over the HTTP/2 connection for up to 5 minutes, after which time you need to call SubscribeToShard again to renew the subscription if you want to continue to receive records. You can make one call to SubscribeToShard per second per registered consumer per shard. For example, if you have a 4000 shard stream and two registered stream consumers, you can make one SubscribeToShard request per second for each combination of shard and registered consumer, allowing you to subscribe both consumers to all 4000 shards in one second. If you call SubscribeToShard again with the same ConsumerARN and ShardId within 5 seconds of a successful call, you'll get a ResourceInUseException. If you call SubscribeToShard 5 seconds or more after a successful call, the second call takes over the subscription and the previous connection expires or fails with a ResourceInUseException. For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API."]moduleStopStreamEncryptionInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream on which to stop encrypting records."];encryptionType:EncryptionType.t[@ocaml.doc"The encryption type. The only valid value is KMS."];keyId:KeyId.t[@ocaml.doc"The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis. Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName Globally unique key ID example: 12345678-1234-1234-1234-123456789012 Alias name example: alias/MyAliasName Master key owned by Kinesis Data Streams: alias/aws/kinesis"];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="StopStreamEncryptionInput"letmake?streamName=fun?streamARN->fun?streamId->fun~encryptionType->fun~keyId->fun()->{streamName;streamARN;streamId;encryptionType;keyId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("EncryptionType",(Some(EncryptionType.to_valuex.encryptionType)));("KeyId",(Some(KeyId.to_valuex.keyId)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletkeyId=KeyId.of_xml(Xml.child_exn~context:context_xml_arg0"KeyId")inletencryptionType=EncryptionType.of_xml(Xml.child_exn~context:context_xml_arg0"EncryptionType")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~keyId~encryptionType?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletkeyId=field_map_exnjson__"KeyId"KeyId.of_jsoninletencryptionType=field_map_exnjson__"EncryptionType"EncryptionType.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~keyId~encryptionType?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disables server-side encryption for a specified stream. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Stopping encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Stopping encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is UPDATING. Once the status of the stream is ACTIVE, records written to the stream are no longer encrypted by Kinesis Data Streams. API Limits: You can successfully disable server-side encryption 25 times in a rolling 24-hour period. Note: It can take up to 5 seconds after the stream is in an ACTIVE status before all records written to the stream are no longer subject to encryption. After you disabled encryption, you can verify that encryption is not applied by inspecting the API response from PutRecord or PutRecords."]moduleStartStreamEncryptionInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream for which to start encrypting records."];encryptionType:EncryptionType.t[@ocaml.doc"The encryption type to use. The only valid value is KMS."];keyId:KeyId.t[@ocaml.doc"The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis. Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName Globally unique key ID example: 12345678-1234-1234-1234-123456789012 Alias name example: alias/MyAliasName Master key owned by Kinesis Data Streams: alias/aws/kinesis"];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="StartStreamEncryptionInput"letmake?streamName=fun?streamARN->fun?streamId->fun~encryptionType->fun~keyId->fun()->{streamName;streamARN;streamId;encryptionType;keyId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("EncryptionType",(Some(EncryptionType.to_valuex.encryptionType)));("KeyId",(Some(KeyId.to_valuex.keyId)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletkeyId=KeyId.of_xml(Xml.child_exn~context:context_xml_arg0"KeyId")inletencryptionType=EncryptionType.of_xml(Xml.child_exn~context:context_xml_arg0"EncryptionType")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~keyId~encryptionType?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletkeyId=field_map_exnjson__"KeyId"KeyId.of_jsoninletencryptionType=field_map_exnjson__"EncryptionType"EncryptionType.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~keyId~encryptionType?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Enables or updates server-side encryption using an Amazon Web Services KMS key for a specified stream. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Starting encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Updating or applying encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is UPDATING. Once the status of the stream is ACTIVE, encryption begins for records written to the stream. API Limits: You can successfully apply a new Amazon Web Services KMS key for server-side encryption 25 times in a rolling 24-hour period. Note: It can take up to 5 seconds after the stream is in an ACTIVE status before all records written to the stream are encrypted. After you enable encryption, you can verify that encryption is applied by inspecting the API response from PutRecord or PutRecords."]moduleSplitShardInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream for the shard split."];shardToSplit:ShardId.t[@ocaml.doc"The shard ID of the shard to split."];newStartingHashKey:HashKey.t[@ocaml.doc"A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for NewStartingHashKey must be in the range of hash keys being mapped into the shard. The NewStartingHashKey hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="SplitShardInput"letmake?streamName=fun?streamARN->fun?streamId->fun~shardToSplit->fun~newStartingHashKey->fun()->{streamName;streamARN;streamId;shardToSplit;newStartingHashKey}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("ShardToSplit",(Some(ShardId.to_valuex.shardToSplit)));("NewStartingHashKey",(Some(HashKey.to_valuex.newStartingHashKey)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletnewStartingHashKey=HashKey.of_xml(Xml.child_exn~context:context_xml_arg0"NewStartingHashKey")inletshardToSplit=ShardId.of_xml(Xml.child_exn~context:context_xml_arg0"ShardToSplit")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~newStartingHashKey~shardToSplit?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletnewStartingHashKey=field_map_exnjson__"NewStartingHashKey"HashKey.of_jsoninletshardToSplit=field_map_exnjson__"ShardToSplit"ShardId.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~newStartingHashKey~shardToSplit?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for SplitShard."]moduleRemoveTagsFromStreamInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream."];tagKeys:TagKeyList.t[@ocaml.doc"A list of tag keys. Each corresponding tag is removed from the stream."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="RemoveTagsFromStreamInput"letmake?streamName=fun?streamARN->fun?streamId->fun~tagKeys->fun()->{streamName;streamARN;streamId;tagKeys}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inlettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~tagKeys?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninlettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~tagKeys?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for RemoveTagsFromStream."]moduleRegisterStreamConsumerOutput=structtypenonrect={consumer:Consumer.toption[@ocaml.doc"An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams."]}typenonrecerror=[`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumer=fun()->{consumer}leterror_of_jsonnamejson=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`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))]|`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[("Consumer",(Option.mapx.consumer~f:Consumer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumer=(Option.map~f:Consumer.of_xml)(Xml.childxml_arg0"Consumer")inmake?consumer()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumer=field_mapjson__"Consumer"Consumer.of_jsoninmake?consumer()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Registers a consumer with a Kinesis data stream. When you use this operation, the consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream. You can add tags to the registered consumer when making a RegisterStreamConsumer request by setting the Tags parameter. If you pass the Tags parameter, in addition to having the kinesis:RegisterStreamConsumer permission, you must also have the kinesis:TagResource permission for the consumer that will be registered. Tags will take effect from the CREATING status of the consumer. With On-demand Advantage streams, you can register up to 50 consumers per stream to use Enhanced Fan-out. With On-demand Standard and Provisioned streams, you can register up to 20 consumers per stream to use Enhanced Fan-out. A given consumer can only be registered with one stream at a time. For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API. The use of this operation has a limit of five transactions per second per account. Also, only 5 consumers can be created simultaneously. In other words, you cannot have more than 5 consumers in a CREATING status at the same time. Registering a 6th consumer while there are 5 in a CREATING status results in a LimitExceededException."]moduleRegisterStreamConsumerInput=structtypenonrect={streamARN:StreamARN.t[@ocaml.doc"The ARN of the Kinesis data stream that you want to register the consumer with. For more info, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces."];consumerName:ConsumerName.t[@ocaml.doc"For a given Kinesis data stream, each consumer must have a unique name. However, consumer names don't have to be unique across data streams."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];tags:TagMap.toption[@ocaml.doc"A set of up to 50 key-value pairs. A tag consists of a required key and an optional value."]}letcontext_="RegisterStreamConsumerInput"letmake?streamId=fun?tags->fun~streamARN->fun~consumerName->fun()->{streamId;tags;streamARN;consumerName}letto_valuex=structure_to_value[("StreamARN",(Some(StreamARN.to_valuex.streamARN)));("ConsumerName",(Some(ConsumerName.to_valuex.consumerName)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletconsumerName=ConsumerName.of_xml(Xml.child_exn~context:context_xml_arg0"ConsumerName")inletstreamARN=StreamARN.of_xml(Xml.child_exn~context:context_xml_arg0"StreamARN")inmake?tags?streamId~consumerName~streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletconsumerName=field_map_exnjson__"ConsumerName"ConsumerName.of_jsoninletstreamARN=field_map_exnjson__"StreamARN"StreamARN.of_jsoninmake?tags?streamId~consumerName~streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Registers a consumer with a Kinesis data stream. When you use this operation, the consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream. You can add tags to the registered consumer when making a RegisterStreamConsumer request by setting the Tags parameter. If you pass the Tags parameter, in addition to having the kinesis:RegisterStreamConsumer permission, you must also have the kinesis:TagResource permission for the consumer that will be registered. Tags will take effect from the CREATING status of the consumer. With On-demand Advantage streams, you can register up to 50 consumers per stream to use Enhanced Fan-out. With On-demand Standard and Provisioned streams, you can register up to 20 consumers per stream to use Enhanced Fan-out. A given consumer can only be registered with one stream at a time. For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API. The use of this operation has a limit of five transactions per second per account. Also, only 5 consumers can be created simultaneously. In other words, you cannot have more than 5 consumers in a CREATING status at the same time. Registering a 6th consumer while there are 5 in a CREATING status results in a LimitExceededException."]modulePutResourcePolicyInput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the data stream or consumer."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."];policy:Policy.t[@ocaml.doc"Details of the resource policy. It must include the identity of the principal and the actions allowed on this resource. This is formatted as a JSON string."]}letcontext_="PutResourcePolicyInput"letmake?streamId=fun~resourceARN->fun~policy->fun()->{streamId;resourceARN;policy}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value));("Policy",(Some(Policy.to_valuex.policy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=Policy.of_xml(Xml.child_exn~context:context_xml_arg0"Policy")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~policy?streamId~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_map_exnjson__"Policy"Policy.of_jsoninletstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~policy?streamId~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Attaches a resource-based policy to a data stream or registered consumer. If you are using an identity other than the root user of the Amazon Web Services account that owns the resource, the calling identity must have the PutResourcePolicy permissions on the specified Kinesis Data Streams resource and belong to the owner's account in order to use this operation. If you don't have PutResourcePolicy permissions, Amazon Kinesis Data Streams returns a 403 Access Denied error. If you receive a ResourceNotFoundException, check to see if you passed a valid stream or consumer resource. Request patterns can be one of the following: Data stream pattern: arn:aws.*:kinesis:.*:\\d\\{12\\}:.*stream/\\S+ Consumer pattern: ^(arn):aws.*:kinesis:.*:\\d\\{12\\}:.*stream\\/\\[a-zA-Z0-9_.-\\]+\\/consumer\\/\\[a-zA-Z0-9_.-\\]+:\\[0-9\\]+ For more information, see Controlling Access to Amazon Kinesis Data Streams Resources Using IAM."]modulePutRecordsOutput=structtypenonrect={failedRecordCount:PositiveIntegerObject.toption[@ocaml.doc"The number of unsuccessfully processed records in a PutRecords request."];records:PutRecordsResultEntryList.toption[@ocaml.doc"An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage in the result."];encryptionType:EncryptionType.toption[@ocaml.doc"The encryption type used on the records. This parameter can be one of the following values: NONE: Do not encrypt the records. KMS: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalFailureExceptionofInternalFailureException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`KMSAccessDeniedExceptionofKMSAccessDeniedException.t|`KMSDisabledExceptionofKMSDisabledException.t|`KMSInvalidStateExceptionofKMSInvalidStateException.t|`KMSNotFoundExceptionofKMSNotFoundException.t|`KMSOptInRequiredofKMSOptInRequired.t|`KMSThrottlingExceptionofKMSThrottlingException.t|`ProvisionedThroughputExceededExceptionofProvisionedThroughputExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?failedRecordCount=fun?records->fun?encryptionType->fun()->{failedRecordCount;records;encryptionType}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_jsonjson)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_jsonjson)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_jsonjson)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_jsonjson)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_jsonjson)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_jsonjson)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_xmlxml)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_xmlxml)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_xmlxml)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_xmlxml)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_xmlxml)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_xmlxml)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`KMSAccessDeniedExceptione->`Assoc[("error",(`String"KMSAccessDeniedException"));("details",(KMSAccessDeniedException.to_jsone))]|`KMSDisabledExceptione->`Assoc[("error",(`String"KMSDisabledException"));("details",(KMSDisabledException.to_jsone))]|`KMSInvalidStateExceptione->`Assoc[("error",(`String"KMSInvalidStateException"));("details",(KMSInvalidStateException.to_jsone))]|`KMSNotFoundExceptione->`Assoc[("error",(`String"KMSNotFoundException"));("details",(KMSNotFoundException.to_jsone))]|`KMSOptInRequirede->`Assoc[("error",(`String"KMSOptInRequired"));("details",(KMSOptInRequired.to_jsone))]|`KMSThrottlingExceptione->`Assoc[("error",(`String"KMSThrottlingException"));("details",(KMSThrottlingException.to_jsone))]|`ProvisionedThroughputExceededExceptione->`Assoc[("error",(`String"ProvisionedThroughputExceededException"));("details",(ProvisionedThroughputExceededException.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[("FailedRecordCount",(Option.mapx.failedRecordCount~f:PositiveIntegerObject.to_value));("Records",(Option.mapx.records~f:PutRecordsResultEntryList.to_value));("EncryptionType",(Option.mapx.encryptionType~f:EncryptionType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionType=(Option.map~f:EncryptionType.of_xml)(Xml.childxml_arg0"EncryptionType")inletrecords=(Option.map~f:PutRecordsResultEntryList.of_xml)(Xml.childxml_arg0"Records")inletfailedRecordCount=(Option.map~f:PositiveIntegerObject.of_xml)(Xml.childxml_arg0"FailedRecordCount")inmake?encryptionType?records?failedRecordCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionType=field_mapjson__"EncryptionType"EncryptionType.of_jsoninletrecords=field_mapjson__"Records"PutRecordsResultEntryList.of_jsoninletfailedRecordCount=field_mapjson__"FailedRecordCount"PositiveIntegerObject.of_jsoninmake?encryptionType?records?failedRecordCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"PutRecords results."]modulePutRecordsInput=structtypenonrect={records:PutRecordsRequestEntryList.t[@ocaml.doc"The records associated with the request."];streamName:StreamName.toption[@ocaml.doc"The stream name associated with the request."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="PutRecordsInput"letmake?streamName=fun?streamARN->fun?streamId->fun~records->fun()->{streamName;streamARN;streamId;records}letto_valuex=structure_to_value[("Records",(Some(PutRecordsRequestEntryList.to_valuex.records)));("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inletrecords=PutRecordsRequestEntryList.of_xml(Xml.child_exn~context:context_xml_arg0"Records")inmake?streamId?streamARN?streamName~records()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninletrecords=field_map_exnjson__"Records"PutRecordsRequestEntryList.of_jsoninmake?streamId?streamARN?streamName~records()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A PutRecords request."]modulePutRecordOutput=structtypenonrect={shardId:ShardId.toption[@ocaml.doc"The shard ID of the shard where the data record was placed."];sequenceNumber:SequenceNumber.toption[@ocaml.doc"The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream."];encryptionType:EncryptionType.toption[@ocaml.doc"The encryption type to use on the record. This parameter can be one of the following values: NONE: Do not encrypt the records in the stream. KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalFailureExceptionofInternalFailureException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`KMSAccessDeniedExceptionofKMSAccessDeniedException.t|`KMSDisabledExceptionofKMSDisabledException.t|`KMSInvalidStateExceptionofKMSInvalidStateException.t|`KMSNotFoundExceptionofKMSNotFoundException.t|`KMSOptInRequiredofKMSOptInRequired.t|`KMSThrottlingExceptionofKMSThrottlingException.t|`ProvisionedThroughputExceededExceptionofProvisionedThroughputExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?shardId=fun?sequenceNumber->fun?encryptionType->fun()->{shardId;sequenceNumber;encryptionType}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_jsonjson)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_jsonjson)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_jsonjson)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_jsonjson)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_jsonjson)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_jsonjson)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_xmlxml)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_xmlxml)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_xmlxml)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_xmlxml)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_xmlxml)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_xmlxml)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`KMSAccessDeniedExceptione->`Assoc[("error",(`String"KMSAccessDeniedException"));("details",(KMSAccessDeniedException.to_jsone))]|`KMSDisabledExceptione->`Assoc[("error",(`String"KMSDisabledException"));("details",(KMSDisabledException.to_jsone))]|`KMSInvalidStateExceptione->`Assoc[("error",(`String"KMSInvalidStateException"));("details",(KMSInvalidStateException.to_jsone))]|`KMSNotFoundExceptione->`Assoc[("error",(`String"KMSNotFoundException"));("details",(KMSNotFoundException.to_jsone))]|`KMSOptInRequirede->`Assoc[("error",(`String"KMSOptInRequired"));("details",(KMSOptInRequired.to_jsone))]|`KMSThrottlingExceptione->`Assoc[("error",(`String"KMSThrottlingException"));("details",(KMSThrottlingException.to_jsone))]|`ProvisionedThroughputExceededExceptione->`Assoc[("error",(`String"ProvisionedThroughputExceededException"));("details",(ProvisionedThroughputExceededException.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[("ShardId",(Option.mapx.shardId~f:ShardId.to_value));("SequenceNumber",(Option.mapx.sequenceNumber~f:SequenceNumber.to_value));("EncryptionType",(Option.mapx.encryptionType~f:EncryptionType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionType=(Option.map~f:EncryptionType.of_xml)(Xml.childxml_arg0"EncryptionType")inletsequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"SequenceNumber")inletshardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ShardId")inmake?encryptionType?sequenceNumber?shardId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionType=field_mapjson__"EncryptionType"EncryptionType.of_jsoninletsequenceNumber=field_mapjson__"SequenceNumber"SequenceNumber.of_jsoninletshardId=field_mapjson__"ShardId"ShardId.of_jsoninmake?encryptionType?sequenceNumber?shardId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for PutRecord."]modulePutRecordInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream to put the data record into."];data:Data.t[@ocaml.doc"The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (10 MiB)."];partitionKey:PartitionKey.t[@ocaml.doc"Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream."];explicitHashKey:HashKey.toption[@ocaml.doc"The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash."];sequenceNumberForOrdering:SequenceNumber.toption[@ocaml.doc"Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the SequenceNumberForOrdering of record n to the sequence number of record n-1 (as returned in the result when putting record n-1). If this parameter is not set, records are coarsely ordered based on arrival time."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="PutRecordInput"letmake?streamName=fun?explicitHashKey->fun?sequenceNumberForOrdering->fun?streamARN->fun?streamId->fun~data->fun~partitionKey->fun()->{streamName;explicitHashKey;sequenceNumberForOrdering;streamARN;streamId;data;partitionKey}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("Data",(Some(Data.to_valuex.data)));("PartitionKey",(Some(PartitionKey.to_valuex.partitionKey)));("ExplicitHashKey",(Option.mapx.explicitHashKey~f:HashKey.to_value));("SequenceNumberForOrdering",(Option.mapx.sequenceNumberForOrdering~f:SequenceNumber.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletsequenceNumberForOrdering=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"SequenceNumberForOrdering")inletexplicitHashKey=(Option.map~f:HashKey.of_xml)(Xml.childxml_arg0"ExplicitHashKey")inletpartitionKey=PartitionKey.of_xml(Xml.child_exn~context:context_xml_arg0"PartitionKey")inletdata=Data.of_xml(Xml.child_exn~context:context_xml_arg0"Data")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?sequenceNumberForOrdering?explicitHashKey~partitionKey~data?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletsequenceNumberForOrdering=field_mapjson__"SequenceNumberForOrdering"SequenceNumber.of_jsoninletexplicitHashKey=field_mapjson__"ExplicitHashKey"HashKey.of_jsoninletpartitionKey=field_map_exnjson__"PartitionKey"PartitionKey.of_jsoninletdata=field_map_exnjson__"Data"Data.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?sequenceNumberForOrdering?explicitHashKey~partitionKey~data?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for PutRecord."]moduleMergeShardsInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream for the merge."];shardToMerge:ShardId.t[@ocaml.doc"The shard ID of the shard to combine with the adjacent shard for the merge."];adjacentShardToMerge:ShardId.t[@ocaml.doc"The shard ID of the adjacent shard for the merge."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="MergeShardsInput"letmake?streamName=fun?streamARN->fun?streamId->fun~shardToMerge->fun~adjacentShardToMerge->fun()->{streamName;streamARN;streamId;shardToMerge;adjacentShardToMerge}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("ShardToMerge",(Some(ShardId.to_valuex.shardToMerge)));("AdjacentShardToMerge",(Some(ShardId.to_valuex.adjacentShardToMerge)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletadjacentShardToMerge=ShardId.of_xml(Xml.child_exn~context:context_xml_arg0"AdjacentShardToMerge")inletshardToMerge=ShardId.of_xml(Xml.child_exn~context:context_xml_arg0"ShardToMerge")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~adjacentShardToMerge~shardToMerge?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletadjacentShardToMerge=field_map_exnjson__"AdjacentShardToMerge"ShardId.of_jsoninletshardToMerge=field_map_exnjson__"ShardToMerge"ShardId.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~adjacentShardToMerge~shardToMerge?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for MergeShards."]moduleListTagsForStreamOutput=structtypenonrect={tags:TagList.toption[@ocaml.doc"A list of tags associated with StreamName, starting with the first tag after ExclusiveStartTagKey and up to the specified Limit."];hasMoreTags:BooleanObject.toption[@ocaml.doc"If set to true, more tags are available. To request additional tags, set ExclusiveStartTagKey to the key of the last tag returned."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun?hasMoreTags->fun()->{tags;hasMoreTags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.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:TagList.to_value));("HasMoreTags",(Option.mapx.hasMoreTags~f:BooleanObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethasMoreTags=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"HasMoreTags")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?hasMoreTags?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethasMoreTags=field_mapjson__"HasMoreTags"BooleanObject.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninmake?hasMoreTags?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for ListTagsForStream."]moduleListTagsForStreamInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream."];exclusiveStartTagKey:TagKey.toption[@ocaml.doc"The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey."];limit:ListTagsForStreamInputLimit.toption[@ocaml.doc"The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamName=fun?exclusiveStartTagKey->fun?limit->fun?streamARN->fun?streamId->fun()->{streamName;exclusiveStartTagKey;limit;streamARN;streamId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("ExclusiveStartTagKey",(Option.mapx.exclusiveStartTagKey~f:TagKey.to_value));("Limit",(Option.mapx.limit~f:ListTagsForStreamInputLimit.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletlimit=(Option.map~f:ListTagsForStreamInputLimit.of_xml)(Xml.childxml_arg0"Limit")inletexclusiveStartTagKey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"ExclusiveStartTagKey")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?limit?exclusiveStartTagKey?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletlimit=field_mapjson__"Limit"ListTagsForStreamInputLimit.of_jsoninletexclusiveStartTagKey=field_mapjson__"ExclusiveStartTagKey"TagKey.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?limit?exclusiveStartTagKey?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for ListTagsForStream."]moduleListTagsForResourceOutput=structtypenonrect={tags:TagList.toption[@ocaml.doc"An array of tags associated with the specified Kinesis resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.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))]|`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:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags added to the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. For more information about tagging Kinesis resources, see Tag your Amazon Kinesis Data Streams resources."]moduleListTagsForResourceInput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Kinesis resource for which to list tags."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="ListTagsForResourceInput"letmake?streamId=fun~resourceARN->fun()->{streamId;resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake?streamId~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake?streamId~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags added to the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. For more information about tagging Kinesis resources, see Tag your Amazon Kinesis Data Streams resources."]moduleListStreamsOutput=structtypenonrect={streamNames:StreamNameList.toption[@ocaml.doc"The names of the streams that are associated with the Amazon Web Services account making the ListStreams request."];hasMoreStreams:BooleanObject.toption[@ocaml.doc"If set to true, there are more streams available to list."];nextToken:NextToken.toption;streamSummaries:StreamSummaryList.toption}typenonrecerror=[`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamNames=fun?hasMoreStreams->fun?nextToken->fun?streamSummaries->fun()->{streamNames;hasMoreStreams;nextToken;streamSummaries}leterror_of_jsonnamejson=matchnamewith|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("StreamNames",(Option.mapx.streamNames~f:StreamNameList.to_value));("HasMoreStreams",(Option.mapx.hasMoreStreams~f:BooleanObject.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("StreamSummaries",(Option.mapx.streamSummaries~f:StreamSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSummaries=(Option.map~f:StreamSummaryList.of_xml)(Xml.childxml_arg0"StreamSummaries")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inlethasMoreStreams=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"HasMoreStreams")inletstreamNames=(Option.map~f:StreamNameList.of_xml)(Xml.childxml_arg0"StreamNames")inmake?streamSummaries?nextToken?hasMoreStreams?streamNames()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSummaries=field_mapjson__"StreamSummaries"StreamSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlethasMoreStreams=field_mapjson__"HasMoreStreams"BooleanObject.of_jsoninletstreamNames=field_mapjson__"StreamNames"StreamNameList.of_jsoninmake?streamSummaries?nextToken?hasMoreStreams?streamNames()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for ListStreams."]moduleListStreamsInput=structtypenonrect={limit:ListStreamsInputLimit.toption[@ocaml.doc"The maximum number of streams to list. The default value is 100. If you specify a value greater than 100, at most 100 results are returned."];exclusiveStartStreamName:StreamName.toption[@ocaml.doc"The name of the stream to start the list with."];nextToken:NextToken.toption}letmake?limit=fun?exclusiveStartStreamName->fun?nextToken->fun()->{limit;exclusiveStartStreamName;nextToken}letto_valuex=structure_to_value[("Limit",(Option.mapx.limit~f:ListStreamsInputLimit.to_value));("ExclusiveStartStreamName",(Option.mapx.exclusiveStartStreamName~f:StreamName.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletexclusiveStartStreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"ExclusiveStartStreamName")inletlimit=(Option.map~f:ListStreamsInputLimit.of_xml)(Xml.childxml_arg0"Limit")inmake?nextToken?exclusiveStartStreamName?limit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletexclusiveStartStreamName=field_mapjson__"ExclusiveStartStreamName"StreamName.of_jsoninletlimit=field_mapjson__"Limit"ListStreamsInputLimit.of_jsoninmake?nextToken?exclusiveStartStreamName?limit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for ListStreams."]moduleListStreamConsumersOutput=structtypenonrect={consumers:ConsumerList.toption[@ocaml.doc"An array of JSON objects. Each object represents one registered consumer."];nextToken:NextToken.toption[@ocaml.doc"When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of registered consumers, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListStreamConsumers to list the next set of registered consumers. For more information about the use of this pagination token when calling the ListStreamConsumers operation, see ListStreamConsumersInput$NextToken. Tokens expire after 300 seconds. When you obtain a value for NextToken in the response to a call to ListStreamConsumers, you have 300 seconds to use that value. If you specify an expired token in a call to ListStreamConsumers, you get ExpiredNextTokenException."]}typenonrecerror=[`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumers=fun?nextToken->fun()->{consumers;nextToken}leterror_of_jsonnamejson=matchnamewith|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.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))]|`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[("Consumers",(Option.mapx.consumers~f:ConsumerList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletconsumers=(Option.map~f:ConsumerList.of_xml)(Xml.childxml_arg0"Consumers")inmake?nextToken?consumers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletconsumers=field_mapjson__"Consumers"ConsumerList.of_jsoninmake?nextToken?consumers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the consumers registered to receive data from a stream using enhanced fan-out, and provides information about each consumer. This operation has a limit of 5 transactions per second per stream."]moduleListStreamConsumersInput=structtypenonrect={streamARN:StreamARN.t[@ocaml.doc"The ARN of the Kinesis data stream for which you want to list the registered consumers. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces."];nextToken:NextToken.toption[@ocaml.doc"When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of consumers that are registered with the data stream, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListStreamConsumers to list the next set of registered consumers. Don't specify StreamName or StreamCreationTimestamp if you specify NextToken because the latter unambiguously identifies the stream. You can optionally specify a value for the MaxResults parameter when you specify NextToken. If you specify a MaxResults value that is less than the number of consumers that the operation returns if you don't specify MaxResults, the response will contain a new NextToken value. You can use the new NextToken value in a subsequent call to the ListStreamConsumers operation to list the next set of consumers. Tokens expire after 300 seconds. When you obtain a value for NextToken in the response to a call to ListStreamConsumers, you have 300 seconds to use that value. If you specify an expired token in a call to ListStreamConsumers, you get ExpiredNextTokenException."];maxResults:ListStreamConsumersInputLimit.toption[@ocaml.doc"The maximum number of consumers that you want a single call of ListStreamConsumers to return. The default value is 100. If you specify a value greater than 100, at most 100 results are returned."];streamCreationTimestamp:Timestamp.toption[@ocaml.doc"Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the consumers for. You can't specify this parameter if you specify the NextToken parameter."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="ListStreamConsumersInput"letmake?nextToken=fun?maxResults->fun?streamCreationTimestamp->fun?streamId->fun~streamARN->fun()->{nextToken;maxResults;streamCreationTimestamp;streamId;streamARN}letto_valuex=structure_to_value[("StreamARN",(Some(StreamARN.to_valuex.streamARN)));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:ListStreamConsumersInputLimit.to_value));("StreamCreationTimestamp",(Option.mapx.streamCreationTimestamp~f:Timestamp.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StreamCreationTimestamp")inletmaxResults=(Option.map~f:ListStreamConsumersInputLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletstreamARN=StreamARN.of_xml(Xml.child_exn~context:context_xml_arg0"StreamARN")inmake?streamId?streamCreationTimestamp?maxResults?nextToken~streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamCreationTimestamp=field_mapjson__"StreamCreationTimestamp"Timestamp.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListStreamConsumersInputLimit.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletstreamARN=field_map_exnjson__"StreamARN"StreamARN.of_jsoninmake?streamId?streamCreationTimestamp?maxResults?nextToken~streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the consumers registered to receive data from a stream using enhanced fan-out, and provides information about each consumer. This operation has a limit of 5 transactions per second per stream."]moduleListShardsOutput=structtypenonrect={shards:ShardList.toption[@ocaml.doc"An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard."];nextToken:NextToken.toption[@ocaml.doc"When the number of shards in the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of shards in the data stream, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListShards to list the next set of shards. For more information about the use of this pagination token when calling the ListShards operation, see ListShardsInput$NextToken. Tokens expire after 300 seconds. When you obtain a value for NextToken in the response to a call to ListShards, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards, you get ExpiredNextTokenException."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredNextTokenExceptionofExpiredNextTokenException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?shards=fun?nextToken->fun()->{shards;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ExpiredNextTokenException"->`ExpiredNextTokenException(ExpiredNextTokenException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ExpiredNextTokenExceptione->`Assoc[("error",(`String"ExpiredNextTokenException"));("details",(ExpiredNextTokenException.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))]|`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[("Shards",(Option.mapx.shards~f:ShardList.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletshards=(Option.map~f:ShardList.of_xml)(Xml.childxml_arg0"Shards")inmake?nextToken?shards()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletshards=field_mapjson__"Shards"ShardList.of_jsoninmake?nextToken?shards()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the shards in a stream and provides information about each shard. This operation has a limit of 1000 transactions per second per data stream. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. This action does not list expired shards. For information about expired shards, see Data Routing, Data Persistence, and Shard State after a Reshard. This API is a new operation that is used by the Amazon Kinesis Client Library (KCL). If you have a fine-grained IAM policy that only allows specific operations, you must update your policy to allow calls to this API. For more information, see Controlling Access to Amazon Kinesis Data Streams Resources Using IAM."]moduleListShardsInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the data stream whose shards you want to list. You cannot specify this parameter if you specify the NextToken parameter."];nextToken:NextToken.toption[@ocaml.doc"When the number of shards in the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of shards in the data stream, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListShards to list the next set of shards. Don't specify StreamName or StreamCreationTimestamp if you specify NextToken because the latter unambiguously identifies the stream. You can optionally specify a value for the MaxResults parameter when you specify NextToken. If you specify a MaxResults value that is less than the number of shards that the operation returns if you don't specify MaxResults, the response will contain a new NextToken value. You can use the new NextToken value in a subsequent call to the ListShards operation. Tokens expire after 300 seconds. When you obtain a value for NextToken in the response to a call to ListShards, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards, you get ExpiredNextTokenException."];exclusiveStartShardId:ShardId.toption[@ocaml.doc"Specify this parameter to indicate that you want to list the shards starting with the shard whose ID immediately follows ExclusiveStartShardId. If you don't specify this parameter, the default behavior is for ListShards to list the shards starting with the first one in the stream. You cannot specify this parameter if you specify NextToken."];maxResults:ListShardsInputLimit.toption[@ocaml.doc"The maximum number of shards to return in a single call to ListShards. The maximum number of shards to return in a single call. The default value is 1000. If you specify a value greater than 1000, at most 1000 results are returned. When the number of shards to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListShards to list the next set of shards."];streamCreationTimestamp:Timestamp.toption[@ocaml.doc"Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the shards for. You cannot specify this parameter if you specify the NextToken parameter."];shardFilter:ShardFilter.toption[@ocaml.doc"Enables you to filter out the response of the ListShards API. You can only specify one filter at a time. If you use the ShardFilter parameter when invoking the ListShards API, the Type is the required property and must be specified. If you specify the AT_TRIM_HORIZON, FROM_TRIM_HORIZON, or AT_LATEST types, you do not need to specify either the ShardId or the Timestamp optional properties. If you specify the AFTER_SHARD_ID type, you must also provide the value for the optional ShardId property. The ShardId property is identical in fuctionality to the ExclusiveStartShardId parameter of the ListShards API. When ShardId property is specified, the response includes the shards starting with the shard whose ID immediately follows the ShardId that you provided. If you specify the AT_TIMESTAMP or FROM_TIMESTAMP_ID type, you must also provide the value for the optional Timestamp property. If you specify the AT_TIMESTAMP type, then all shards that were open at the provided timestamp are returned. If you specify the FROM_TIMESTAMP type, then all shards starting from the provided timestamp to TIP are returned."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamName=fun?nextToken->fun?exclusiveStartShardId->fun?maxResults->fun?streamCreationTimestamp->fun?shardFilter->fun?streamARN->fun?streamId->fun()->{streamName;nextToken;exclusiveStartShardId;maxResults;streamCreationTimestamp;shardFilter;streamARN;streamId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("ExclusiveStartShardId",(Option.mapx.exclusiveStartShardId~f:ShardId.to_value));("MaxResults",(Option.mapx.maxResults~f:ListShardsInputLimit.to_value));("StreamCreationTimestamp",(Option.mapx.streamCreationTimestamp~f:Timestamp.to_value));("ShardFilter",(Option.mapx.shardFilter~f:ShardFilter.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletshardFilter=(Option.map~f:ShardFilter.of_xml)(Xml.childxml_arg0"ShardFilter")inletstreamCreationTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StreamCreationTimestamp")inletmaxResults=(Option.map~f:ListShardsInputLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletexclusiveStartShardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ExclusiveStartShardId")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?shardFilter?streamCreationTimestamp?maxResults?exclusiveStartShardId?nextToken?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletshardFilter=field_mapjson__"ShardFilter"ShardFilter.of_jsoninletstreamCreationTimestamp=field_mapjson__"StreamCreationTimestamp"Timestamp.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListShardsInputLimit.of_jsoninletexclusiveStartShardId=field_mapjson__"ExclusiveStartShardId"ShardId.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?shardFilter?streamCreationTimestamp?maxResults?exclusiveStartShardId?nextToken?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the shards in a stream and provides information about each shard. This operation has a limit of 1000 transactions per second per data stream. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. This action does not list expired shards. For information about expired shards, see Data Routing, Data Persistence, and Shard State after a Reshard. This API is a new operation that is used by the Amazon Kinesis Client Library (KCL). If you have a fine-grained IAM policy that only allows specific operations, you must update your policy to allow calls to this API. For more information, see Controlling Access to Amazon Kinesis Data Streams Resources Using IAM."]moduleIncreaseStreamRetentionPeriodInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream to modify."];retentionPeriodHours:RetentionPeriodHours.t[@ocaml.doc"The new retention period of the stream, in hours. Must be more than the current retention period."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="IncreaseStreamRetentionPeriodInput"letmake?streamName=fun?streamARN->fun?streamId->fun~retentionPeriodHours->fun()->{streamName;streamARN;streamId;retentionPeriodHours}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("RetentionPeriodHours",(Some(RetentionPeriodHours.to_valuex.retentionPeriodHours)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletretentionPeriodHours=RetentionPeriodHours.of_xml(Xml.child_exn~context:context_xml_arg0"RetentionPeriodHours")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~retentionPeriodHours?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletretentionPeriodHours=field_map_exnjson__"RetentionPeriodHours"RetentionPeriodHours.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~retentionPeriodHours?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for IncreaseStreamRetentionPeriod."]moduleGetShardIteratorOutput=structtypenonrect={shardIterator:ShardIterator.toption[@ocaml.doc"The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalFailureExceptionofInternalFailureException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ProvisionedThroughputExceededExceptionofProvisionedThroughputExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?shardIterator=fun()->{shardIterator}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ProvisionedThroughputExceededExceptione->`Assoc[("error",(`String"ProvisionedThroughputExceededException"));("details",(ProvisionedThroughputExceededException.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[("ShardIterator",(Option.mapx.shardIterator~f:ShardIterator.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshardIterator=(Option.map~f:ShardIterator.of_xml)(Xml.childxml_arg0"ShardIterator")inmake?shardIterator()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshardIterator=field_mapjson__"ShardIterator"ShardIterator.of_jsoninmake?shardIterator()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for GetShardIterator."]moduleGetShardIteratorInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the Amazon Kinesis data stream."];shardId:ShardId.t[@ocaml.doc"The shard ID of the Kinesis Data Streams shard to get the iterator for."];shardIteratorType:ShardIteratorType.t[@ocaml.doc"Determines how the shard iterator is used to start reading data records from the shard. The following are the valid Amazon Kinesis shard iterator types: AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value StartingSequenceNumber. AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value StartingSequenceNumber. AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value Timestamp. TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard. LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard."];startingSequenceNumber:SequenceNumber.toption[@ocaml.doc"The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER."];timestamp:Timestamp.toption[@ocaml.doc"The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a record with this exact time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON)."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="GetShardIteratorInput"letmake?streamName=fun?startingSequenceNumber->fun?timestamp->fun?streamARN->fun?streamId->fun~shardId->fun~shardIteratorType->fun()->{streamName;startingSequenceNumber;timestamp;streamARN;streamId;shardId;shardIteratorType}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("ShardId",(Some(ShardId.to_valuex.shardId)));("ShardIteratorType",(Some(ShardIteratorType.to_valuex.shardIteratorType)));("StartingSequenceNumber",(Option.mapx.startingSequenceNumber~f:SequenceNumber.to_value));("Timestamp",(Option.mapx.timestamp~f:Timestamp.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inlettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Timestamp")inletstartingSequenceNumber=(Option.map~f:SequenceNumber.of_xml)(Xml.childxml_arg0"StartingSequenceNumber")inletshardIteratorType=ShardIteratorType.of_xml(Xml.child_exn~context:context_xml_arg0"ShardIteratorType")inletshardId=ShardId.of_xml(Xml.child_exn~context:context_xml_arg0"ShardId")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?timestamp?startingSequenceNumber~shardIteratorType~shardId?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninlettimestamp=field_mapjson__"Timestamp"Timestamp.of_jsoninletstartingSequenceNumber=field_mapjson__"StartingSequenceNumber"SequenceNumber.of_jsoninletshardIteratorType=field_map_exnjson__"ShardIteratorType"ShardIteratorType.of_jsoninletshardId=field_map_exnjson__"ShardId"ShardId.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?timestamp?startingSequenceNumber~shardIteratorType~shardId?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for GetShardIterator."]moduleGetResourcePolicyOutput=structtypenonrect={policy:Policy.toption[@ocaml.doc"Details of the resource policy. This is formatted as a JSON string."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policy=fun()->{policy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.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))]|`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[("Policy",(Option.mapx.policy~f:Policy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:Policy.of_xml)(Xml.childxml_arg0"Policy")inmake?policy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"Policy"Policy.of_jsoninmake?policy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a policy attached to the specified data stream or consumer. Request patterns can be one of the following: Data stream pattern: arn:aws.*:kinesis:.*:\\d\\{12\\}:.*stream/\\S+ Consumer pattern: ^(arn):aws.*:kinesis:.*:\\d\\{12\\}:.*stream\\/\\[a-zA-Z0-9_.-\\]+\\/consumer\\/\\[a-zA-Z0-9_.-\\]+:\\[0-9\\]+"]moduleGetResourcePolicyInput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the data stream or consumer."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="GetResourcePolicyInput"letmake?streamId=fun~resourceARN->fun()->{streamId;resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake?streamId~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake?streamId~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a policy attached to the specified data stream or consumer. Request patterns can be one of the following: Data stream pattern: arn:aws.*:kinesis:.*:\\d\\{12\\}:.*stream/\\S+ Consumer pattern: ^(arn):aws.*:kinesis:.*:\\d\\{12\\}:.*stream\\/\\[a-zA-Z0-9_.-\\]+\\/consumer\\/\\[a-zA-Z0-9_.-\\]+:\\[0-9\\]+"]moduleGetRecordsOutput=structtypenonrect={records:RecordList.toption[@ocaml.doc"The data records retrieved from the shard."];nextShardIterator:ShardIterator.toption[@ocaml.doc"The next position in the shard from which to start sequentially reading data records. If set to null, the shard has been closed and the requested iterator does not return any more data."];millisBehindLatest:MillisBehindLatest.toption[@ocaml.doc"The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment."];childShards:ChildShardList.toption[@ocaml.doc"The list of the current shard's child shards, returned in the GetRecords API's response only when the end of the current shard is reached."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ExpiredIteratorExceptionofExpiredIteratorException.t|`InternalFailureExceptionofInternalFailureException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`KMSAccessDeniedExceptionofKMSAccessDeniedException.t|`KMSDisabledExceptionofKMSDisabledException.t|`KMSInvalidStateExceptionofKMSInvalidStateException.t|`KMSNotFoundExceptionofKMSNotFoundException.t|`KMSOptInRequiredofKMSOptInRequired.t|`KMSThrottlingExceptionofKMSThrottlingException.t|`ProvisionedThroughputExceededExceptionofProvisionedThroughputExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?records=fun?nextShardIterator->fun?millisBehindLatest->fun?childShards->fun()->{records;nextShardIterator;millisBehindLatest;childShards}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ExpiredIteratorException"->`ExpiredIteratorException(ExpiredIteratorException.of_jsonjson)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_jsonjson)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_jsonjson)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_jsonjson)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_jsonjson)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_jsonjson)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_jsonjson)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ExpiredIteratorException"->`ExpiredIteratorException(ExpiredIteratorException.of_xmlxml)|"InternalFailureException"->`InternalFailureException(InternalFailureException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"KMSAccessDeniedException"->`KMSAccessDeniedException(KMSAccessDeniedException.of_xmlxml)|"KMSDisabledException"->`KMSDisabledException(KMSDisabledException.of_xmlxml)|"KMSInvalidStateException"->`KMSInvalidStateException(KMSInvalidStateException.of_xmlxml)|"KMSNotFoundException"->`KMSNotFoundException(KMSNotFoundException.of_xmlxml)|"KMSOptInRequired"->`KMSOptInRequired(KMSOptInRequired.of_xmlxml)|"KMSThrottlingException"->`KMSThrottlingException(KMSThrottlingException.of_xmlxml)|"ProvisionedThroughputExceededException"->`ProvisionedThroughputExceededException(ProvisionedThroughputExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ExpiredIteratorExceptione->`Assoc[("error",(`String"ExpiredIteratorException"));("details",(ExpiredIteratorException.to_jsone))]|`InternalFailureExceptione->`Assoc[("error",(`String"InternalFailureException"));("details",(InternalFailureException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`KMSAccessDeniedExceptione->`Assoc[("error",(`String"KMSAccessDeniedException"));("details",(KMSAccessDeniedException.to_jsone))]|`KMSDisabledExceptione->`Assoc[("error",(`String"KMSDisabledException"));("details",(KMSDisabledException.to_jsone))]|`KMSInvalidStateExceptione->`Assoc[("error",(`String"KMSInvalidStateException"));("details",(KMSInvalidStateException.to_jsone))]|`KMSNotFoundExceptione->`Assoc[("error",(`String"KMSNotFoundException"));("details",(KMSNotFoundException.to_jsone))]|`KMSOptInRequirede->`Assoc[("error",(`String"KMSOptInRequired"));("details",(KMSOptInRequired.to_jsone))]|`KMSThrottlingExceptione->`Assoc[("error",(`String"KMSThrottlingException"));("details",(KMSThrottlingException.to_jsone))]|`ProvisionedThroughputExceededExceptione->`Assoc[("error",(`String"ProvisionedThroughputExceededException"));("details",(ProvisionedThroughputExceededException.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[("Records",(Option.mapx.records~f:RecordList.to_value));("NextShardIterator",(Option.mapx.nextShardIterator~f:ShardIterator.to_value));("MillisBehindLatest",(Option.mapx.millisBehindLatest~f:MillisBehindLatest.to_value));("ChildShards",(Option.mapx.childShards~f:ChildShardList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchildShards=(Option.map~f:ChildShardList.of_xml)(Xml.childxml_arg0"ChildShards")inletmillisBehindLatest=(Option.map~f:MillisBehindLatest.of_xml)(Xml.childxml_arg0"MillisBehindLatest")inletnextShardIterator=(Option.map~f:ShardIterator.of_xml)(Xml.childxml_arg0"NextShardIterator")inletrecords=(Option.map~f:RecordList.of_xml)(Xml.childxml_arg0"Records")inmake?childShards?millisBehindLatest?nextShardIterator?records()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchildShards=field_mapjson__"ChildShards"ChildShardList.of_jsoninletmillisBehindLatest=field_mapjson__"MillisBehindLatest"MillisBehindLatest.of_jsoninletnextShardIterator=field_mapjson__"NextShardIterator"ShardIterator.of_jsoninletrecords=field_mapjson__"Records"RecordList.of_jsoninmake?childShards?millisBehindLatest?nextShardIterator?records()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for GetRecords."]moduleGetRecordsInput=structtypenonrect={shardIterator:ShardIterator.t[@ocaml.doc"The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard."];limit:GetRecordsInputLimit.toption[@ocaml.doc"The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords throws InvalidArgumentException. The default value is 10,000."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="GetRecordsInput"letmake?limit=fun?streamARN->fun?streamId->fun~shardIterator->fun()->{limit;streamARN;streamId;shardIterator}letto_valuex=structure_to_value[("ShardIterator",(Some(ShardIterator.to_valuex.shardIterator)));("Limit",(Option.mapx.limit~f:GetRecordsInputLimit.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletlimit=(Option.map~f:GetRecordsInputLimit.of_xml)(Xml.childxml_arg0"Limit")inletshardIterator=ShardIterator.of_xml(Xml.child_exn~context:context_xml_arg0"ShardIterator")inmake?streamId?streamARN?limit~shardIterator()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletlimit=field_mapjson__"Limit"GetRecordsInputLimit.of_jsoninletshardIterator=field_map_exnjson__"ShardIterator"ShardIterator.of_jsoninmake?streamId?streamARN?limit~shardIterator()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for GetRecords."]moduleEnhancedMonitoringOutput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the Kinesis data stream."];currentShardLevelMetrics:MetricsNameList.toption[@ocaml.doc"Represents the current state of the metrics that are in the enhanced state before the operation."];desiredShardLevelMetrics:MetricsNameList.toption[@ocaml.doc"Represents the list of all the metrics that would be in the enhanced state after the operation."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamName=fun?currentShardLevelMetrics->fun?desiredShardLevelMetrics->fun?streamARN->fun()->{streamName;currentShardLevelMetrics;desiredShardLevelMetrics;streamARN}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.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))]|`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[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("CurrentShardLevelMetrics",(Option.mapx.currentShardLevelMetrics~f:MetricsNameList.to_value));("DesiredShardLevelMetrics",(Option.mapx.desiredShardLevelMetrics~f:MetricsNameList.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletdesiredShardLevelMetrics=(Option.map~f:MetricsNameList.of_xml)(Xml.childxml_arg0"DesiredShardLevelMetrics")inletcurrentShardLevelMetrics=(Option.map~f:MetricsNameList.of_xml)(Xml.childxml_arg0"CurrentShardLevelMetrics")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamARN?desiredShardLevelMetrics?currentShardLevelMetrics?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletdesiredShardLevelMetrics=field_mapjson__"DesiredShardLevelMetrics"MetricsNameList.of_jsoninletcurrentShardLevelMetrics=field_mapjson__"CurrentShardLevelMetrics"MetricsNameList.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamARN?desiredShardLevelMetrics?currentShardLevelMetrics?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring."]moduleEnableEnhancedMonitoringInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream for which to enable enhanced monitoring."];shardLevelMetrics:MetricsNameList.t[@ocaml.doc"List of shard-level metrics to enable. The following are the valid shard-level metrics. The value \"ALL\" enables every metric. IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="EnableEnhancedMonitoringInput"letmake?streamName=fun?streamARN->fun?streamId->fun~shardLevelMetrics->fun()->{streamName;streamARN;streamId;shardLevelMetrics}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("ShardLevelMetrics",(Some(MetricsNameList.to_valuex.shardLevelMetrics)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletshardLevelMetrics=MetricsNameList.of_xml(Xml.child_exn~context:context_xml_arg0"ShardLevelMetrics")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~shardLevelMetrics?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletshardLevelMetrics=field_map_exnjson__"ShardLevelMetrics"MetricsNameList.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~shardLevelMetrics?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for EnableEnhancedMonitoring."]moduleDisableEnhancedMonitoringInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the Kinesis data stream for which to disable enhanced monitoring."];shardLevelMetrics:MetricsNameList.t[@ocaml.doc"List of shard-level metrics to disable. The following are the valid shard-level metrics. The value \"ALL\" disables every metric. IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="DisableEnhancedMonitoringInput"letmake?streamName=fun?streamARN->fun?streamId->fun~shardLevelMetrics->fun()->{streamName;streamARN;streamId;shardLevelMetrics}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("ShardLevelMetrics",(Some(MetricsNameList.to_valuex.shardLevelMetrics)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletshardLevelMetrics=MetricsNameList.of_xml(Xml.child_exn~context:context_xml_arg0"ShardLevelMetrics")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~shardLevelMetrics?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletshardLevelMetrics=field_map_exnjson__"ShardLevelMetrics"MetricsNameList.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~shardLevelMetrics?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for DisableEnhancedMonitoring."]moduleDescribeStreamSummaryOutput=structtypenonrect={streamDescriptionSummary:StreamDescriptionSummary.toption[@ocaml.doc"A StreamDescriptionSummary containing information about the stream."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamDescriptionSummary=fun()->{streamDescriptionSummary}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.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[("StreamDescriptionSummary",(Option.mapx.streamDescriptionSummary~f:StreamDescriptionSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamDescriptionSummary=(Option.map~f:StreamDescriptionSummary.of_xml)(Xml.childxml_arg0"StreamDescriptionSummary")inmake?streamDescriptionSummary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamDescriptionSummary=field_mapjson__"StreamDescriptionSummary"StreamDescriptionSummary.of_jsoninmake?streamDescriptionSummary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a summarized description of the specified Kinesis data stream without the shard list. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. The information returned includes the stream name, Amazon Resource Name (ARN), status, record retention period, approximate creation time, monitoring, encryption details, and open shard count. DescribeStreamSummary has a limit of 20 transactions per second per account."]moduleDescribeStreamSummaryInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream to describe."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamName=fun?streamARN->fun?streamId->fun()->{streamName;streamARN;streamId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a summarized description of the specified Kinesis data stream without the shard list. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. The information returned includes the stream name, Amazon Resource Name (ARN), status, record retention period, approximate creation time, monitoring, encryption details, and open shard count. DescribeStreamSummary has a limit of 20 transactions per second per account."]moduleDescribeStreamOutput=structtypenonrect={streamDescription:StreamDescription.toption[@ocaml.doc"The current status of the stream, the stream Amazon Resource Name (ARN), an array of shard objects that comprise the stream, and whether there are more shards available."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamDescription=fun()->{streamDescription}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.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[("StreamDescription",(Option.mapx.streamDescription~f:StreamDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamDescription=(Option.map~f:StreamDescription.of_xml)(Xml.childxml_arg0"StreamDescription")inmake?streamDescription()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamDescription=field_mapjson__"StreamDescription"StreamDescription.of_jsoninmake?streamDescription()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the output for DescribeStream."]moduleDescribeStreamInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream to describe."];limit:DescribeStreamInputLimit.toption[@ocaml.doc"The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 results are returned."];exclusiveStartShardId:ShardId.toption[@ocaml.doc"The shard ID of the shard to start with. Specify this parameter to indicate that you want to describe the stream starting with the shard whose ID immediately follows ExclusiveStartShardId. If you don't specify this parameter, the default behavior for DescribeStream is to describe the stream starting with the first shard in the stream."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamName=fun?limit->fun?exclusiveStartShardId->fun?streamARN->fun?streamId->fun()->{streamName;limit;exclusiveStartShardId;streamARN;streamId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("Limit",(Option.mapx.limit~f:DescribeStreamInputLimit.to_value));("ExclusiveStartShardId",(Option.mapx.exclusiveStartShardId~f:ShardId.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletexclusiveStartShardId=(Option.map~f:ShardId.of_xml)(Xml.childxml_arg0"ExclusiveStartShardId")inletlimit=(Option.map~f:DescribeStreamInputLimit.of_xml)(Xml.childxml_arg0"Limit")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?exclusiveStartShardId?limit?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletexclusiveStartShardId=field_mapjson__"ExclusiveStartShardId"ShardId.of_jsoninletlimit=field_mapjson__"Limit"DescribeStreamInputLimit.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?exclusiveStartShardId?limit?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for DescribeStream."]moduleDescribeStreamConsumerOutput=structtypenonrect={consumerDescription:ConsumerDescription.toption[@ocaml.doc"An object that represents the details of the consumer."]}typenonrecerror=[`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumerDescription=fun()->{consumerDescription}leterror_of_jsonnamejson=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.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|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.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[("ConsumerDescription",(Option.mapx.consumerDescription~f:ConsumerDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumerDescription=(Option.map~f:ConsumerDescription.of_xml)(Xml.childxml_arg0"ConsumerDescription")inmake?consumerDescription()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumerDescription=field_mapjson__"ConsumerDescription"ConsumerDescription.of_jsoninmake?consumerDescription()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To get the description of a registered consumer, provide the ARN of the consumer. Alternatively, you can provide the ARN of the data stream and the name you gave the consumer when you registered it. You may also provide all three parameters, as long as they don't conflict with each other. If you don't know the name or ARN of the consumer that you want to describe, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. This operation has a limit of 20 transactions per second per stream. When making a cross-account call with DescribeStreamConsumer, make sure to provide the ARN of the consumer."]moduleDescribeStreamConsumerInput=structtypenonrect={streamARN:StreamARN.toption[@ocaml.doc"The ARN of the Kinesis data stream that the consumer is registered with. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces."];consumerName:ConsumerName.toption[@ocaml.doc"The name that you gave to the consumer."];consumerARN:ConsumerARN.toption[@ocaml.doc"The ARN returned by Kinesis Data Streams when you registered the consumer."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamARN=fun?consumerName->fun?consumerARN->fun?streamId->fun()->{streamARN;consumerName;consumerARN;streamId}letto_valuex=structure_to_value[("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("ConsumerName",(Option.mapx.consumerName~f:ConsumerName.to_value));("ConsumerARN",(Option.mapx.consumerARN~f:ConsumerARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletconsumerARN=(Option.map~f:ConsumerARN.of_xml)(Xml.childxml_arg0"ConsumerARN")inletconsumerName=(Option.map~f:ConsumerName.of_xml)(Xml.childxml_arg0"ConsumerName")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inmake?streamId?consumerARN?consumerName?streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletconsumerARN=field_mapjson__"ConsumerARN"ConsumerARN.of_jsoninletconsumerName=field_mapjson__"ConsumerName"ConsumerName.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninmake?streamId?consumerARN?consumerName?streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To get the description of a registered consumer, provide the ARN of the consumer. Alternatively, you can provide the ARN of the data stream and the name you gave the consumer when you registered it. You may also provide all three parameters, as long as they don't conflict with each other. If you don't know the name or ARN of the consumer that you want to describe, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. This operation has a limit of 20 transactions per second per stream. When making a cross-account call with DescribeStreamConsumer, make sure to provide the ARN of the consumer."]moduleDescribeLimitsOutput=structtypenonrect={shardLimit:ShardCountObject.toption[@ocaml.doc"The maximum number of shards."];openShardCount:ShardCountObject.toption[@ocaml.doc"The number of open shards."];onDemandStreamCount:OnDemandStreamCountObject.toption[@ocaml.doc"Indicates the number of data streams with the on-demand capacity mode."];onDemandStreamCountLimit:OnDemandStreamCountLimitObject.toption[@ocaml.doc"The maximum number of data streams with the on-demand capacity mode."]}typenonrecerror=[`LimitExceededExceptionofLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?shardLimit=fun?openShardCount->fun?onDemandStreamCount->fun?onDemandStreamCountLimit->fun()->{shardLimit;openShardCount;onDemandStreamCount;onDemandStreamCountLimit}leterror_of_jsonnamejson=matchnamewith|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ShardLimit",(Option.mapx.shardLimit~f:ShardCountObject.to_value));("OpenShardCount",(Option.mapx.openShardCount~f:ShardCountObject.to_value));("OnDemandStreamCount",(Option.mapx.onDemandStreamCount~f:OnDemandStreamCountObject.to_value));("OnDemandStreamCountLimit",(Option.mapx.onDemandStreamCountLimit~f:OnDemandStreamCountLimitObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letonDemandStreamCountLimit=(Option.map~f:OnDemandStreamCountLimitObject.of_xml)(Xml.childxml_arg0"OnDemandStreamCountLimit")inletonDemandStreamCount=(Option.map~f:OnDemandStreamCountObject.of_xml)(Xml.childxml_arg0"OnDemandStreamCount")inletopenShardCount=(Option.map~f:ShardCountObject.of_xml)(Xml.childxml_arg0"OpenShardCount")inletshardLimit=(Option.map~f:ShardCountObject.of_xml)(Xml.childxml_arg0"ShardLimit")inmake?onDemandStreamCountLimit?onDemandStreamCount?openShardCount?shardLimit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letonDemandStreamCountLimit=field_mapjson__"OnDemandStreamCountLimit"OnDemandStreamCountLimitObject.of_jsoninletonDemandStreamCount=field_mapjson__"OnDemandStreamCount"OnDemandStreamCountObject.of_jsoninletopenShardCount=field_mapjson__"OpenShardCount"ShardCountObject.of_jsoninletshardLimit=field_mapjson__"ShardLimit"ShardCountObject.of_jsoninmake?onDemandStreamCountLimit?onDemandStreamCount?openShardCount?shardLimit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the shard limits and usage for the account. If you update your account limits, the old limits might be returned for a few minutes. This operation has a limit of one transaction per second per account."]moduleDescribeLimitsInput=structtypenonrect=unitletmake()=()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"Describes the shard limits and usage for the account. If you update your account limits, the old limits might be returned for a few minutes. This operation has a limit of one transaction per second per account."]moduleDescribeAccountSettingsOutput=structtypenonrect={minimumThroughputBillingCommitment:MinimumThroughputBillingCommitmentOutput.toption[@ocaml.doc"The current configuration of the minimum throughput billing commitment for your Amazon Web Services account."]}typenonrecerror=[`LimitExceededExceptionofLimitExceededException.t|`Unknown_operation_errorof(string*stringoption)]letmake?minimumThroughputBillingCommitment=fun()->{minimumThroughputBillingCommitment}leterror_of_jsonnamejson=matchnamewith|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MinimumThroughputBillingCommitment",(Option.mapx.minimumThroughputBillingCommitment~f:MinimumThroughputBillingCommitmentOutput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letminimumThroughputBillingCommitment=(Option.map~f:MinimumThroughputBillingCommitmentOutput.of_xml)(Xml.childxml_arg0"MinimumThroughputBillingCommitment")inmake?minimumThroughputBillingCommitment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letminimumThroughputBillingCommitment=field_mapjson__"MinimumThroughputBillingCommitment"MinimumThroughputBillingCommitmentOutput.of_jsoninmake?minimumThroughputBillingCommitment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the account-level settings for Amazon Kinesis Data Streams. This operation returns information about the minimum throughput billing commitments and other account-level configurations. This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException."]moduleDescribeAccountSettingsInput=structtypenonrect=unitletmake()=()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"Describes the account-level settings for Amazon Kinesis Data Streams. This operation returns information about the minimum throughput billing commitments and other account-level configurations. This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException."]moduleDeregisterStreamConsumerInput=structtypenonrect={streamARN:StreamARN.toption[@ocaml.doc"The ARN of the Kinesis data stream that the consumer is registered with. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces."];consumerName:ConsumerName.toption[@ocaml.doc"The name that you gave to the consumer."];consumerARN:ConsumerARN.toption[@ocaml.doc"The ARN returned by Kinesis Data Streams when you registered the consumer. If you don't know the ARN of the consumer that you want to deregister, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. The description of a consumer contains its ARN."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamARN=fun?consumerName->fun?consumerARN->fun?streamId->fun()->{streamARN;consumerName;consumerARN;streamId}letto_valuex=structure_to_value[("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("ConsumerName",(Option.mapx.consumerName~f:ConsumerName.to_value));("ConsumerARN",(Option.mapx.consumerARN~f:ConsumerARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletconsumerARN=(Option.map~f:ConsumerARN.of_xml)(Xml.childxml_arg0"ConsumerARN")inletconsumerName=(Option.map~f:ConsumerName.of_xml)(Xml.childxml_arg0"ConsumerName")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inmake?streamId?consumerARN?consumerName?streamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletconsumerARN=field_mapjson__"ConsumerARN"ConsumerARN.of_jsoninletconsumerName=field_mapjson__"ConsumerName"ConsumerName.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninmake?streamId?consumerARN?consumerName?streamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To deregister a consumer, provide its ARN. Alternatively, you can provide the ARN of the data stream and the name you gave the consumer when you registered it. You may also provide all three parameters, as long as they don't conflict with each other. If you don't know the name or ARN of the consumer that you want to deregister, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. The description of a consumer contains its name and ARN. This operation has a limit of five transactions per second per stream."]moduleDeleteStreamInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream to delete."];enforceConsumerDeletion:BooleanObject.toption[@ocaml.doc"If this parameter is unset (null) or if you set it to false, and the stream has registered consumers, the call to DeleteStream fails with a ResourceInUseException."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letmake?streamName=fun?enforceConsumerDeletion->fun?streamARN->fun?streamId->fun()->{streamName;enforceConsumerDeletion;streamARN;streamId}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("EnforceConsumerDeletion",(Option.mapx.enforceConsumerDeletion~f:BooleanObject.to_value));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletenforceConsumerDeletion=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"EnforceConsumerDeletion")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN?enforceConsumerDeletion?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletenforceConsumerDeletion=field_mapjson__"EnforceConsumerDeletion"BooleanObject.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN?enforceConsumerDeletion?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for DeleteStream."]moduleDeleteResourcePolicyInput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"The Amazon Resource Name (ARN) of the data stream or consumer."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="DeleteResourcePolicyInput"letmake?streamId=fun~resourceARN->fun()->{streamId;resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake?streamId~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake?streamId~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Delete a policy for the specified data stream or consumer. Request patterns can be one of the following: Data stream pattern: arn:aws.*:kinesis:.*:\\d\\{12\\}:.*stream/\\S+ Consumer pattern: ^(arn):aws.*:kinesis:.*:\\d\\{12\\}:.*stream\\/\\[a-zA-Z0-9_.-\\]+\\/consumer\\/\\[a-zA-Z0-9_.-\\]+:\\[0-9\\]+"]moduleDecreaseStreamRetentionPeriodInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream to modify."];retentionPeriodHours:RetentionPeriodHours.t[@ocaml.doc"The new retention period of the stream, in hours. Must be less than the current retention period."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="DecreaseStreamRetentionPeriodInput"letmake?streamName=fun?streamARN->fun?streamId->fun~retentionPeriodHours->fun()->{streamName;streamARN;streamId;retentionPeriodHours}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("RetentionPeriodHours",(Some(RetentionPeriodHours.to_valuex.retentionPeriodHours)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inletretentionPeriodHours=RetentionPeriodHours.of_xml(Xml.child_exn~context:context_xml_arg0"RetentionPeriodHours")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~retentionPeriodHours?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninletretentionPeriodHours=field_map_exnjson__"RetentionPeriodHours"RetentionPeriodHours.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~retentionPeriodHours?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for DecreaseStreamRetentionPeriod."]moduleCreateStreamInput=structtypenonrect={streamName:StreamName.t[@ocaml.doc"A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name."];shardCount:PositiveIntegerObject.toption[@ocaml.doc"The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput."];streamModeDetails:StreamModeDetails.toption[@ocaml.doc"Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams."];tags:TagMap.toption[@ocaml.doc"A set of up to 50 key-value pairs to use to create the tags. A tag consists of a required key and an optional value."];warmThroughputMiBps:NaturalIntegerObject.toption[@ocaml.doc"The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations."];maxRecordSizeInKiB:MaxRecordSizeInKiB.toption[@ocaml.doc"The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream."]}letcontext_="CreateStreamInput"letmake?shardCount=fun?streamModeDetails->fun?tags->fun?warmThroughputMiBps->fun?maxRecordSizeInKiB->fun~streamName->fun()->{shardCount;streamModeDetails;tags;warmThroughputMiBps;maxRecordSizeInKiB;streamName}letto_valuex=structure_to_value[("StreamName",(Some(StreamName.to_valuex.streamName)));("ShardCount",(Option.mapx.shardCount~f:PositiveIntegerObject.to_value));("StreamModeDetails",(Option.mapx.streamModeDetails~f:StreamModeDetails.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("WarmThroughputMiBps",(Option.mapx.warmThroughputMiBps~f:NaturalIntegerObject.to_value));("MaxRecordSizeInKiB",(Option.mapx.maxRecordSizeInKiB~f:MaxRecordSizeInKiB.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxRecordSizeInKiB=(Option.map~f:MaxRecordSizeInKiB.of_xml)(Xml.childxml_arg0"MaxRecordSizeInKiB")inletwarmThroughputMiBps=(Option.map~f:NaturalIntegerObject.of_xml)(Xml.childxml_arg0"WarmThroughputMiBps")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletstreamModeDetails=(Option.map~f:StreamModeDetails.of_xml)(Xml.childxml_arg0"StreamModeDetails")inletshardCount=(Option.map~f:PositiveIntegerObject.of_xml)(Xml.childxml_arg0"ShardCount")inletstreamName=StreamName.of_xml(Xml.child_exn~context:context_xml_arg0"StreamName")inmake?maxRecordSizeInKiB?warmThroughputMiBps?tags?streamModeDetails?shardCount~streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxRecordSizeInKiB=field_mapjson__"MaxRecordSizeInKiB"MaxRecordSizeInKiB.of_jsoninletwarmThroughputMiBps=field_mapjson__"WarmThroughputMiBps"NaturalIntegerObject.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletstreamModeDetails=field_mapjson__"StreamModeDetails"StreamModeDetails.of_jsoninletshardCount=field_mapjson__"ShardCount"PositiveIntegerObject.of_jsoninletstreamName=field_map_exnjson__"StreamName"StreamName.of_jsoninmake?maxRecordSizeInKiB?warmThroughputMiBps?tags?streamModeDetails?shardCount~streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for CreateStream."]moduleAddTagsToStreamInput=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the stream."];tags:TagMap.t[@ocaml.doc"A set of up to 50 key-value pairs to use to create the tags. A tag consists of a required key and an optional value. You can add up to 50 tags per resource."];streamARN:StreamARN.toption[@ocaml.doc"The ARN of the stream."];streamId:StreamId.toption[@ocaml.doc"Not Implemented. Reserved for future use."]}letcontext_="AddTagsToStreamInput"letmake?streamName=fun?streamARN->fun?streamId->fun~tags->fun()->{streamName;streamARN;streamId;tags}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("Tags",(Some(TagMap.to_valuex.tags)));("StreamARN",(Option.mapx.streamARN~f:StreamARN.to_value));("StreamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"StreamId")inletstreamARN=(Option.map~f:StreamARN.of_xml)(Xml.childxml_arg0"StreamARN")inlettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamId?streamARN~tags?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"StreamId"StreamId.of_jsoninletstreamARN=field_mapjson__"StreamARN"StreamARN.of_jsoninlettags=field_map_exnjson__"Tags"TagMap.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamId?streamARN~tags?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents the input for AddTagsToStream."]